diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 71f918d..fc681cd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -109,3 +109,18 @@ Tag SHA: rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_TAG +Tag Release: + image: + name: quay.io/containers/skopeo:latest + entrypoint: [""] + interruptible: no # W: truthy value should be one of [false, true] + cache: [] + before_script: [] + stage: Release + script: + - echo "$CI_REGISTRY_PASSWORD" | skopeo login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin # E: line too long (100 > 80 characters) + - skopeo inspect oci-archive:$IMAGE_TARBALL + - skopeo copy --all oci-archive:$IMAGE_TARBALL docker://$IMAGE_TAG_RELEASE + - skopeo copy --all oci-archive:$IMAGE_TARBALL docker://$IMAGE_TAG_LATEST + rules: + - if: $CI_COMMIT_TAG