From 30b38ad9d865c91e7c3010795034dccb5027bfa8 Mon Sep 17 00:00:00 2001
From: Alexey Kotlyarov
Date: Sat, 16 Mar 2024 13:31:39 +1100
Subject: [PATCH 1/2] Remove manually set Docker tags (default is OK)
---
.releaserc.json | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/.releaserc.json b/.releaserc.json
index dbe22c5..ad2f09f 100644
--- a/.releaserc.json
+++ b/.releaserc.json
@@ -8,8 +8,7 @@
{
"dockerRegistry": "ghcr.io",
"dockerProject": "koterpillar",
- "dockerImage": "multiblog",
- "dockerTags": ["latest", "{{version}}"]
+ "dockerImage": "multiblog"
}
],
"@semantic-release/github"
From b568c0592fe3ed59f2e9af073e8f288983bf2238 Mon Sep 17 00:00:00 2001
From: Alexey Kotlyarov
Date: Sat, 16 Mar 2024 13:32:10 +1100
Subject: [PATCH 2/2] fix: Authenticate to GitHub container registry when
publishing
---
.github/workflows/main.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 6d37cef..f81459e 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -36,6 +36,8 @@ jobs:
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ DOCKER_REGISTRY_USER: ${{ github.actor }}
+ DOCKER_REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: |
npx \
--package @codedependant/semantic-release-docker@4 \