feat(ci): add concurrency (#38)

This makes it so that inprogress builds are cancelled when you make a new push. Matches the rest of ublue.
This commit is contained in:
Jorge O. Castro 2024-12-02 22:52:48 -05:00 committed by GitHub
parent 45dad42de4
commit 90c3f2c60a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,6 +18,10 @@ env:
MY_IMAGE_DESC: "My Customized Universal Blue Image" MY_IMAGE_DESC: "My Customized Universal Blue Image"
IMAGE_REGISTRY: "ghcr.io/${{ github.repository_owner }}" # do not edit IMAGE_REGISTRY: "ghcr.io/${{ github.repository_owner }}" # do not edit
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-${{ inputs.brand_name}}-${{ inputs.stream_name }}
cancel-in-progress: true
jobs: jobs:
build_push: build_push:
name: Build and push image name: Build and push image