|
5 | 5 | branches:
|
6 | 6 | - main
|
7 | 7 |
|
| 8 | + |
| 9 | +concurrency: |
| 10 | + group: ${{ github.workflow }}${{ github.ref_name != github.event.repository.default_branch && github.ref || github.run_id }} |
| 11 | + cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }} |
8 | 12 | jobs:
|
9 | 13 | publish:
|
10 | 14 | runs-on: ubuntu-latest
|
11 | 15 | steps:
|
12 |
| - - name: Checkout code |
13 |
| - uses: actions/checkout@v3 |
| 16 | + - name: Checkout code |
| 17 | + uses: actions/checkout@v3 |
14 | 18 |
|
15 |
| - - name: Set up Docker Buildx |
16 |
| - uses: docker/setup-buildx-action@v2 |
| 19 | + - name: Set up Docker Buildx |
| 20 | + uses: docker/setup-buildx-action@v2 |
17 | 21 |
|
18 |
| - - name: Login to Docker Hub |
19 |
| - uses: docker/login-action@v3 |
20 |
| - with: |
21 |
| - username: ${{ secrets.DOCKER_USERNAME }} |
22 |
| - password: ${{ secrets.DOCKER_ACCESS_TOKEN }} |
| 22 | + - name: Login to Docker Hub |
| 23 | + uses: docker/login-action@v3 |
| 24 | + with: |
| 25 | + username: ${{ secrets.DOCKER_USERNAME }} |
| 26 | + password: ${{ secrets.DOCKER_ACCESS_TOKEN }} |
23 | 27 |
|
24 |
| - - name: Build and push docker image |
25 |
| - uses: docker/build-push-action@v4 |
26 |
| - with: |
27 |
| - push: true |
28 |
| - tags: getyourguide/istio-config-validator:latest |
| 28 | + - name: Build and push docker image |
| 29 | + uses: docker/build-push-action@v4 |
| 30 | + with: |
| 31 | + push: true |
| 32 | + tags: getyourguide/istio-config-validator:latest |
29 | 33 |
|
30 |
| - - name: Build and push istio-router-check |
31 |
| - uses: docker/build-push-action@v4 |
32 |
| - with: |
33 |
| - pull: true |
34 |
| - file: hack/istio-router-check/Dockerfile |
35 |
| - context: . |
36 |
| - push: true |
37 |
| - tags: getyourguide/istio-router-check:release-1.22 |
| 34 | + - name: Build and push istio-router-check |
| 35 | + uses: docker/build-push-action@v4 |
| 36 | + with: |
| 37 | + pull: true |
| 38 | + file: hack/istio-router-check/Dockerfile |
| 39 | + context: . |
| 40 | + push: true |
| 41 | + tags: getyourguide/istio-router-check:release-1.22 |
0 commit comments