2020-11-13 14:32:18 -05:00
|
|
|
name: Docker
|
|
|
|
|
2020-11-27 04:38:38 -05:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
pull_request:
|
2021-01-21 19:10:17 -05:00
|
|
|
types: [synchronize, opened, reopened, ready_for_review]
|
2020-11-13 14:32:18 -05:00
|
|
|
|
|
|
|
jobs:
|
2021-02-06 19:25:46 -05:00
|
|
|
docker-build:
|
2021-01-21 19:10:17 -05:00
|
|
|
if: github.event.pull_request.draft == false
|
2021-02-06 19:25:46 -05:00
|
|
|
name: docker-build
|
2020-11-13 14:32:18 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-01-24 02:10:16 -05:00
|
|
|
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
2020-11-13 14:32:18 -05:00
|
|
|
uses: actions/checkout@v2
|
2021-01-24 02:10:16 -05:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2020-11-13 14:32:18 -05:00
|
|
|
|
|
|
|
- shell: bash
|
|
|
|
env:
|
|
|
|
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
|
|
|
|
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
run: |
|
|
|
|
.github/workflows/docker_build_push.sh
|