Skip to content
Snippets Groups Projects
Commit 1f839f65 authored by Ostermayer, Markus's avatar Ostermayer, Markus
Browse files

Added SWET to the container and switched to kaniko

parent 3357d0c1
Branches
No related tags found
1 merge request!4Added SWET to the container and switched to kaniko
image: docker:20.10.10
stages:
- build
build-image:
stage: build
variables:
IMAGE_NAME: "os-sweb-image"
IMAGE_TAG: $CI_REGISTRY_IMAGE/$IMAGE_NAME:latest
services:
- docker:20.10.10-dind
image:
name: gcr.io/kaniko-project/executor:v1.9.0-debug
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $IMAGE_TAG .
- docker push $IMAGE_TAG
- /kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "Dockerfile"
--destination "${CI_REGISTRY_IMAGE}:latest"
--build-arg CI_TOKEN=${CI_JOB_TOKEN}
rules:
- if: $CI_COMMIT_BRANCH == "main"
changes:
......
FROM alpine:3.16
ARG CI_TOKEN
RUN apk update
# QEMU-Dependencies
RUN apk update && apk add qemu qemu-img qemu-system-x86_64 \
......@@ -8,6 +10,8 @@ RUN apk update && apk add qemu qemu-img qemu-system-x86_64 \
# https://packages.ubuntu.com/jammy/build-essential
gcc g++ make libc-dev \
# Install other sweb Dependencies
python3 cmake
python3 py3-pip cmake
RUN pip install swet --extra-index-url https://gitlab-ci-token:$CI_TOKEN@gitlab.tugraz.at/api/v4/projects/21215/packages/pypi/simple
WORKDIR /sweb
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment