Skip to content
Snippets Groups Projects
Verified Commit 489ed11e authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

ci(gitlab-ci): Add temporary gitlab CI in place

This patch adds a gitlab-ci integration while tekton is still in the
works. This should build all images required, while keeping the door
open for switching to tekton soon.
parent 8de31d8b
No related branches found
No related tags found
No related merge requests found
Pipeline #14013 passed
--- ---
include:
- local: 'images/**/.gitlab-ci.yaml'
stages: stages:
- release - release
- build
# Automated month-based releases # Automated month-based releases
......
dovecot-container-build:
stage: build
image: quay.io/sheogorath/build-ah-engine:2.0.0
before_script:
- podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- |
cd images/dovecot
source .release
podman build --pull \
--label "org.opencontainers.image.source=$CI_PROJECT_URL/-/tree/$CI_COMMIT_SHA/images/dovecot" \
--label "org.opencontainers.image.revision=$CI_COMMIT_SHA" \
--label "org.opencontainers.image.created=$(date --rfc-3339 ns)" \
--label "org.opencontainers.image.title=dovecot" \
-t "quay.io/shivering-isles/dovecot:${release}" \
--format docker \
.
- podman push "quay.io/shivering-isles/dovecot:${release}"
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
dovecot-container-build-dev:
stage: build
image: quay.io/sheogorath/build-ah-engine:2.0.0
before_script:
- podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- |
cd images/dovecot
podman build --pull \
--label "org.opencontainers.image.source=$CI_PROJECT_URL/-/tree/$CI_COMMIT_SHA/images/dovecot" \
--label "org.opencontainers.image.revision=$CI_COMMIT_SHA" \
--label "org.opencontainers.image.created=$(date --rfc-3339 ns)" \
--label "org.opencontainers.image.title=$CI_PROJECT_TITLE" \
--label "quay.expires-after=12w" \
-t "quay.io/shivering-isles/dovecot:${CI_COMMIT_SHORT_SHA}" \
--format docker \
.
- podman push "quay.io/shivering-isles/dovecot:${CI_COMMIT_SHORT_SHA}"
rules:
- if: '$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH'
postfix-container-build:
stage: build
image: quay.io/sheogorath/build-ah-engine:2.0.0
before_script:
- podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- |
cd images/postfix
source .release
podman build --pull \
--label "org.opencontainers.image.source=$CI_PROJECT_URL/-/tree/$CI_COMMIT_SHA/images/postfix" \
--label "org.opencontainers.image.revision=$CI_COMMIT_SHA" \
--label "org.opencontainers.image.created=$(date --rfc-3339 ns)" \
--label "org.opencontainers.image.title=$CI_PROJECT_TITLE" \
-t "quay.io/shivering-isles/postfix:${release}" \
--format docker \
.
- podman push "quay.io/shivering-isles/postfix:${release}"
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
postfix-container-build-dev:
stage: build
image: quay.io/sheogorath/build-ah-engine:2.0.0
before_script:
- podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- |
cd images/dovecot
podman build --pull \
--label "org.opencontainers.image.source=$CI_PROJECT_URL/-/tree/$CI_COMMIT_SHA/images/postfix" \
--label "org.opencontainers.image.revision=$CI_COMMIT_SHA" \
--label "org.opencontainers.image.created=$(date --rfc-3339 ns)" \
--label "org.opencontainers.image.title=$CI_PROJECT_TITLE" \
--label "quay.expires-after=12w" \
-t "quay.io/shivering-isles/postfix:${CI_COMMIT_SHORT_SHA}" \
--format docker \
.
- podman push "quay.io/shivering-isles/postfix:${CI_COMMIT_SHORT_SHA}"
rules:
- if: '$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment