ci: push latest
This commit is contained in:
@@ -14,7 +14,7 @@ skopeo copy \
|
||||
"docker-archive:result" \
|
||||
"docker://${IMAGE}"
|
||||
|
||||
if [ "${GITEA_REF_TYPE:-}" = "branch" ] && [ "${GITEA_REF_NAME:-}" = "main" ]; then
|
||||
if [ "${REF_NAME:-}" = "main" ]; then
|
||||
skopeo copy \
|
||||
--dest-creds "${USERNAME}:${PASSWORD}" \
|
||||
"docker-archive:result" \
|
||||
|
||||
@@ -21,6 +21,7 @@ jobs:
|
||||
REPOSITORY: "${{ gitea.repository }}"
|
||||
USERNAME: "${{ secrets.REGISTRY_USER }}"
|
||||
PASSWORD: "${{ secrets.REGISTRY_TOKEN }}"
|
||||
REF_NAME: "${{ gitea.ref_name }}"
|
||||
TAG: "${{ gitea.sha }}"
|
||||
run: bash .gitea/scripts/push-image.sh
|
||||
|
||||
@@ -41,5 +42,6 @@ jobs:
|
||||
REPOSITORY: "${{ gitea.repository }}-web"
|
||||
USERNAME: "${{ secrets.REGISTRY_USER }}"
|
||||
PASSWORD: "${{ secrets.REGISTRY_TOKEN }}"
|
||||
REF_NAME: "${{ gitea.ref_name }}"
|
||||
TAG: "${{ gitea.sha }}"
|
||||
run: bash .gitea/scripts/push-image.sh
|
||||
|
||||
Reference in New Issue
Block a user