name: Build and push image on: push: branches: [main] jobs: Build: runs-on: ubuntu-latest steps: - name: Build run: | echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u thatguyjack --password-stdin docker build -t tgj.services/git/php-fpm:latest . docker push tgj.services/git/php-fpm:latestversion: "3.8"