Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ jobs:

publish-docker-image:
name: Publish Docker Image
needs: extract-version
strategy:
matrix:
configs:
Expand All @@ -106,7 +107,7 @@ jobs:
run: |
platform=${{ matrix.configs.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/rollup-boost/}" >> $GITHUB_ENV
echo "RELEASE_VERSION=${{ needs.extract-version.outputs.VERSION }}" >> $GITHUB_ENV

- name: Print version
run: |
Expand Down Expand Up @@ -166,6 +167,7 @@ jobs:
runs-on: warp-ubuntu-latest-x64-16x
needs:
- publish-docker-image
- extract-version
steps:
- name: Download digests
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -197,20 +199,19 @@ jobs:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=sha
type=pep440,pattern={{version}}
type=pep440,pattern={{major}}.{{minor}}
type=raw,value=latest,enable=${{ !contains(env.RELEASE_VERSION, '-rc') }}
type=raw,value=${{ needs.extract-version.outputs.VERSION }}
type=raw,value=latest,enable=${{ !contains(needs.extract-version.outputs.VERSION, '-') }}

- name: Create manifest list and push
working-directory: /tmp/digests
run: |
image=$(
jq -cr '.tags | first' <<< "$DOCKER_METADATA_OUTPUT_JSON"
)

docker buildx imagetools create -t $image $(
printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *
)
# Create manifest for each tag
jq -cr '.tags[]' <<< "$DOCKER_METADATA_OUTPUT_JSON" | while read -r tag; do
echo "Creating manifest for tag: $tag"
docker buildx imagetools create -t $tag $(
printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *
)
done

- name: Install regctl
uses: regclient/actions/regctl-installer@main
Expand Down
22 changes: 12 additions & 10 deletions .github/workflows/websocket-proxy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ jobs:

publish-docker-image:
name: Publish Docker Image
needs: extract-version
strategy:
matrix:
configs:
Expand All @@ -106,7 +107,7 @@ jobs:
run: |
platform=${{ matrix.configs.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/websocket-proxy/}" >> $GITHUB_ENV
echo "RELEASE_VERSION=${{ needs.extract-version.outputs.VERSION }}" >> $GITHUB_ENV

- name: Print version
run: |
Expand Down Expand Up @@ -167,6 +168,7 @@ jobs:
runs-on: warp-ubuntu-latest-x64-16x
needs:
- publish-docker-image
- extract-version
steps:
- name: Download digests
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -198,19 +200,19 @@ jobs:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=sha
type=raw,value=${{ env.RELEASE_VERSION }}
type=raw,value=latest,enable=${{ !contains(env.RELEASE_VERSION, '-') }}
type=raw,value=${{ needs.extract-version.outputs.VERSION }}
type=raw,value=latest,enable=${{ !contains(needs.extract-version.outputs.VERSION, '-') }}

- name: Create manifest list and push
working-directory: /tmp/digests
run: |
image=$(
jq -cr '.tags | first' <<< "$DOCKER_METADATA_OUTPUT_JSON"
)

docker buildx imagetools create -t $image $(
printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *
)
# Create manifest for each tag
jq -cr '.tags[]' <<< "$DOCKER_METADATA_OUTPUT_JSON" | while read -r tag; do
echo "Creating manifest for tag: $tag"
docker buildx imagetools create -t $tag $(
printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *
)
done

- name: Install regctl
uses: regclient/actions/regctl-installer@main
Expand Down
Loading