diff --git a/.github/workflows/docker-hub-ci.yaml b/.github/workflows/docker-hub-ci.yaml new file mode 100644 index 0000000..618e919 --- /dev/null +++ b/.github/workflows/docker-hub-ci.yaml @@ -0,0 +1,33 @@ +name: Docker Hub CI + +on: + push: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v3 + with: + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/dadjokes:latest + platforms: linux/amd64,linux/arm64