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