|
|
|
@ -4,17 +4,16 @@ concurrency: build |
|
|
|
on: |
|
|
|
push: |
|
|
|
branches: |
|
|
|
- master |
|
|
|
- 'master' |
|
|
|
- 'release/*' |
|
|
|
pull_request: |
|
|
|
branches: |
|
|
|
- master |
|
|
|
- 'master' |
|
|
|
- 'release/*' |
|
|
|
|
|
|
|
jobs: |
|
|
|
build: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
if: github.event_name != 'pull_request' |
|
|
|
steps: |
|
|
|
- name: Checkout |
|
|
|
uses: actions/checkout@v3.1.0 |
|
|
|
@ -29,12 +28,14 @@ jobs: |
|
|
|
uses: docker/setup-buildx-action@v2.2.1 |
|
|
|
|
|
|
|
- name: Login to Docker Hub |
|
|
|
if: github.event_name != 'pull_request' |
|
|
|
uses: docker/login-action@v2.1.0 |
|
|
|
with: |
|
|
|
username: ${{ secrets.DOCKER_USERNAME }} |
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }} |
|
|
|
|
|
|
|
- name: BUILD |
|
|
|
if: github.event_name != 'pull_request' |
|
|
|
uses: docker/build-push-action@v3.2.0 |
|
|
|
with: |
|
|
|
push: true |
|
|
|
|