| name: Docker |
| |
| on: |
| push: |
| branches: |
| - 'master' |
| pull_request: |
| types: [synchronize, opened, reopened, ready_for_review] |
| |
| jobs: |
| docker-build: |
| if: github.event.pull_request.draft == false |
| name: docker-build |
| runs-on: ubuntu-latest |
| steps: |
| - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" |
| uses: actions/checkout@v2 |
| with: |
| persist-credentials: false |
| |
| - shell: bash |
| env: |
| DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }} |
| DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} |
| run: | |
| .github/workflows/docker_build_push.sh |