diff options
author | 2023-09-26 20:01:39 -0700 | |
---|---|---|
committer | 2023-09-26 20:01:39 -0700 | |
commit | e5b62bf074b1509f8f111ab60e26eaa23ef29b30 (patch) | |
tree | 6f0cb78979ca269052b614efefe574e8300f388f | |
parent | e05d190e6a4a915ccb3764305a6f2e56d6fceb36 (diff) | |
download | bun-e5b62bf074b1509f8f111ab60e26eaa23ef29b30.tar.gz bun-e5b62bf074b1509f8f111ab60e26eaa23ef29b30.tar.zst bun-e5b62bf074b1509f8f111ab60e26eaa23ef29b30.zip |
Fix docker tags
-rw-r--r-- | .github/workflows/bun-release.yml | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/.github/workflows/bun-release.yml b/.github/workflows/bun-release.yml index 10f2bb268..eaef41326 100644 --- a/.github/workflows/bun-release.yml +++ b/.github/workflows/bun-release.yml @@ -2,6 +2,7 @@ name: bun-release concurrency: release env: BUN_VERSION: ${{ github.event.inputs.tag || github.event.release.tag_name || 'canary' }} + BUN_LATEST: ${{ github.event.inputs.is-latest || github.event.release.prerelease == 'false' }} on: release: types: @@ -160,13 +161,14 @@ jobs: with: images: oven/bun flavor: | - latest=${{ matrix.suffix == '' && (github.event.inputs.is-latest == 'true' || github.event.release.tag_name == env.BUN_VERSION) }} - suffix=${{ matrix.suffix }} + latest=false tags: | - type=raw,value=${{ matrix.variant }},enable=${{ github.event.inputs.is-latest == 'true' || github.event.release.tag_name == env.BUN_VERSION || 'false' }} - type=match,pattern=(bun-v)?(canary|\d+.\d+.\d+),group=2,value=${{ env.BUN_VERSION }} - type=match,pattern=(bun-v)?(canary|\d+.\d+),group=2,value=${{ env.BUN_VERSION }} - type=match,pattern=(bun-v)?(canary|\d+),group=2,value=${{ env.BUN_VERSION }} + type=raw,value=latest,enable=${{ env.BUN_LATEST == 'true' && matrix.suffix == '' }} + type=raw,value=latest,suffix=${{ matrix.suffix }},enable=${{ env.BUN_LATEST == 'true' }} + type=raw,value=${{ matrix.variant }},enable=${{ env.BUN_LATEST == 'true' }} + type=match,pattern=(bun-v)?(canary|\d+.\d+.\d+),group=2,value=${{ env.BUN_VERSION }},suffix=${{ matrix.suffix }} + type=match,pattern=(bun-v)?(canary|\d+.\d+),group=2,value=${{ env.BUN_VERSION }},suffix=${{ matrix.suffix }} + type=match,pattern=(bun-v)?(canary|\d+),group=2,value=${{ env.BUN_VERSION }},suffix=${{ matrix.suffix }} - name: Login to Docker uses: docker/login-action@v2 with: |