Skip to content
Snippets Groups Projects
Commit b01eec25 authored by c-tim's avatar c-tim Committed by Tim Neumann
Browse files

Add ci jobs to build and publish docker image

parent 57d416de
Branches
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ variables:
APT_API_URL: https://packages.cccv.de
APT_REPO: uffd
PYLINT_PIN: pylint~=2.10.0
DOCKER_IMAGE_TAG: latest
before_script:
- python3 -V
......@@ -40,6 +41,20 @@ build:apt:
paths:
- ./*.deb
build:docker:
extends: .build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
before_script: []
script:
- mkdir -p /kaniko/.docker
- /kaniko/executor --force --use-new-run --context $CI_PROJECT_DIR --no-push --destination $CI_REGISTRY_IMAGE --tarPath image.tar
artifacts:
paths:
- image.tar
when: on_success
db_migrations_updated:
stage: test
script:
......@@ -221,3 +236,15 @@ publish:apt:
- 'curl --user "${APTLY_API_USER}:${APTLY_API_PW}" -X PUT -H "Content-Type: application/json" --data "{ }" "${APT_API_URL}/api/publish/uffd/bullseye"'
dependencies:
- build:apt
publish:docker:
extends: .publish
image:
name: gcr.io/go-containerregistry/crane:debug
entrypoint: [""]
before_script: []
script:
- crane auth login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- crane push image.tar $CI_REGISTRY_IMAGE:$DOCKER_IMAGE_TAG
needs:
- build:docker
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment