From 920feb58b676866e9c7a0c06c6c37a60a9215bd7 Mon Sep 17 00:00:00 2001 From: boc-the-git <3479092+boc-the-git@users.noreply.github.com> Date: Sat, 24 Feb 2024 20:18:19 +1100 Subject: [PATCH] Add docker image tag for each version (in addition to latest) --- .github/workflows/publish-ghcr.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-ghcr.yaml b/.github/workflows/publish-ghcr.yaml index 1f910a06..d1fd396c 100644 --- a/.github/workflows/publish-ghcr.yaml +++ b/.github/workflows/publish-ghcr.yaml @@ -12,5 +12,5 @@ jobs: - name: Build and push the image run: | docker login --username danielbrendel --password ${{ secrets.GH_CONTAINER_REGISTRY }} ghcr.io - docker build . --tag ghcr.io/danielbrendel/hortusfox-web:latest - docker push ghcr.io/danielbrendel/hortusfox-web:latest \ No newline at end of file + docker build . --tag ghcr.io/danielbrendel/hortusfox-web:latest --tag ghcr.io/danielbrendel/hortusfox-web:${{ github.ref_name }} + docker push --all-tags ghcr.io/danielbrendel/hortusfox-web