Compare commits
No commits in common. "main" and "v1" have entirely different histories.
3 changed files with 20 additions and 40 deletions
18
.gitlab-ci.yml
Normal file
18
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
image: quay.io/podman/stable
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- push
|
||||||
|
|
||||||
|
variables:
|
||||||
|
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- echo -n $CI_REGISTRY_PASSWORD | podman login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
|
||||||
|
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- podman build -t $IMAGE_TAG .
|
||||||
|
- podman push $IMAGE_TAG
|
||||||
|
when: manual
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
when:
|
|
||||||
- event: tag
|
|
||||||
|
|
||||||
clone:
|
|
||||||
- name: git
|
|
||||||
image: woodpeckerci/plugin-git
|
|
||||||
settings:
|
|
||||||
partial: false
|
|
||||||
tags: true
|
|
||||||
depth: 0
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: publish
|
|
||||||
image: quay.io/podman/stable
|
|
||||||
environment:
|
|
||||||
REGISTRY: registry.mnl.de
|
|
||||||
REGISTRY_USER: mnl
|
|
||||||
REGISTRY_TOKEN:
|
|
||||||
from_secret: REGISTRY_TOKEN
|
|
||||||
commands:
|
|
||||||
# Because we run this as user 1000 to make podman work:
|
|
||||||
- git config --global --add safe.directory $(pwd)
|
|
||||||
- export IMAGE_TAG=$(git describe --tags)
|
|
||||||
- echo $IMAGE_TAG
|
|
||||||
- export IMAGE_REF="$REGISTRY/$REGISTRY_USER/jdk21-builder:$IMAGE_TAG"
|
|
||||||
- echo $REGISTRY_TOKEN | podman login -u $REGISTRY_USER --password-stdin $REGISTRY
|
|
||||||
- echo Building image $IMAGE_REF
|
|
||||||
- podman build -t $IMAGE_REF .
|
|
||||||
- podman push $IMAGE_REF
|
|
||||||
backend_options:
|
|
||||||
kubernetes:
|
|
||||||
securityContext:
|
|
||||||
privileged: true
|
|
||||||
runAsUser: 1000
|
|
||||||
runAsGroup: 1000
|
|
||||||
|
|
@ -1,8 +1,5 @@
|
||||||
# Podman for running in container pre-installed
|
FROM docker.io/fedora:40
|
||||||
# See https://www.redhat.com/en/blog/podman-inside-container
|
|
||||||
FROM quay.io/podman/stable
|
|
||||||
|
|
||||||
RUN dnf install -y java-21-openjdk-headless nodejs python \
|
RUN dnf install -y java-21-openjdk-headless nodejs python gcc gcc-c++ git podman
|
||||||
gcc gcc-c++ git graphviz ruby
|
|
||||||
|
|
||||||
CMD ["/bin/bash"]
|
CMD ["/bin/bash"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue