name: Build and push image on: push: branches: [main] jobs: Build: runs-on: ubuntu-latest steps: - name: Build run: | curl -fsSL get.docker.com | bash echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login 'tgj.services/git/' -u thatguyjack --password-stdin git pull https://tgj.services/git/ThatGuyJack/php-fpm-docker.git . docker build -t tgj.services/git/thatguyjack/php-fpm:latest docker push tgj.services/git/thatguyjack/php-fpm:latest version: "3.8"