Skip to content

Commit aa24d78

Browse files
committed
ci: update
1 parent 757b1d6 commit aa24d78

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ defaults:
1010
permissions:
1111
contents: read
1212
packages: write
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
1316
jobs:
1417
configure:
1518
runs-on: ubuntu-latest
@@ -44,7 +47,6 @@ jobs:
4447
image: ghcr.io/douglasneuroinformatics/open-data-capture-gateway
4548
- dockerfile: ./apps/web/Dockerfile
4649
image: ghcr.io/douglasneuroinformatics/open-data-capture-web
47-
if: ${{ needs.configure.outputs.is_release }}
4850
steps:
4951
- name: Checkout Repository
5052
uses: actions/checkout@v4
@@ -55,6 +57,7 @@ jobs:
5557
- name: Set Up Docker Buildx
5658
uses: docker/setup-buildx-action@v3
5759
- name: Login to Container Registry
60+
if: ${{ needs.configure.outputs.is_release }}
5861
uses: docker/login-action@v3
5962
with:
6063
registry: ghcr.io
@@ -73,7 +76,7 @@ jobs:
7376
with:
7477
context: .
7578
file: ${{ matrix.dockerfile }}
76-
push: true
79+
push: ${{ needs.configure.outputs.is_release }}
7780
platforms: linux/amd64,linux/arm64
7881
tags: ${{ steps.meta.outputs.tags }}
7982
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)