name: Build and Push Docker Image on: push: branches: [main] jobs: build-and-push: runs-on: ubuntu-latest steps: - name: Check out repository code uses: actions/checkout@v4 - name: Log in to Docker Hub - Main web app container registry uses: docker/login-action@v1 with: registry: gitea.dropgaze.xyz username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Build run: docker buildx build -t gitea.dropgaze.xyz/jake/sproute-db-migrations:latest --platform linux/amd64,linux/arm64 . - name: Push run: docker push -t gitea.dropgaze.xyz/jake/sproute-db-migrations:latest