Add CI to tag releases
This commit is contained in:
@@ -109,3 +109,18 @@ Tag SHA:
|
|||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
- if: $CI_COMMIT_TAG
|
- 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
|
||||||
|
|||||||
Reference in New Issue
Block a user