mirror of
https://github.com/rqlite/rqlite.git
synced 2026-01-25 04:16:26 +00:00
Test full Docker and GHCR publishing
This commit is contained in:
12
.github/workflows/build-docker-ghcr.yml
vendored
12
.github/workflows/build-docker-ghcr.yml
vendored
@@ -1,9 +1,9 @@
|
||||
name: docker-ghcr-release-build-and-push
|
||||
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- created
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
|
||||
env:
|
||||
REGISTRY_IMAGE: rqlite/rqlite
|
||||
@@ -126,8 +126,7 @@ jobs:
|
||||
run: |
|
||||
# Tags: latest and vX.Y.Z (without the leading 'v' in your current scheme)
|
||||
docker buildx imagetools create \
|
||||
-t ${{ env.DH_IMAGE }}:latest \
|
||||
-t ${{ env.DH_IMAGE }}:${{ env.STRIPPED_VERSION }} \
|
||||
-t ${{ env.DH_IMAGE }}:dev \
|
||||
$(printf '${{ env.DH_IMAGE }}@sha256:%s ' *)
|
||||
|
||||
# New: Copy the same digests into GHCR and tag them identically
|
||||
@@ -135,6 +134,5 @@ jobs:
|
||||
working-directory: /tmp/digests
|
||||
run: |
|
||||
docker buildx imagetools create \
|
||||
-t ${{ env.GHCR_IMAGE }}:latest \
|
||||
-t ${{ env.GHCR_IMAGE }}:${{ env.STRIPPED_VERSION }} \
|
||||
-t ${{ env.GHCR_IMAGE }}:dev \
|
||||
$(printf '${{ env.DH_IMAGE }}@sha256:%s ' *)
|
||||
|
||||
Reference in New Issue
Block a user