Compare commits
33 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8ec6c10431 | |||
| 0353f6b13d | |||
| d8e7ff70b9 | |||
| 3b0a7e5fd0 | |||
| 1a4a8a2d4b | |||
| 5398059bb1 | |||
| a354603112 | |||
| ce2293544d | |||
| 709b00a1ca | |||
| a96a32182b | |||
| ef885e4575 | |||
| 98c8fda2e0 | |||
| eb32619b16 | |||
| 45a1fd602a | |||
| b9ddc4e220 | |||
| 4d989a04e9 | |||
| 3e57d17a24 | |||
| f9a60d28c1 | |||
| 3fa53a2eae | |||
| 0ead2d91e0 | |||
| eeeee80c3d | |||
| d93a8daad9 | |||
| c961530890 | |||
| f22c4d726f | |||
| 86f48b39db | |||
| 217442576b | |||
| fb75ba3147 | |||
| 7876f4d718 | |||
| 7914e46fe9 | |||
| 4031110cbb | |||
| 383b824510 | |||
| edb7bda3ac | |||
| 581347b9e2 |
3 changed files with 40 additions and 20 deletions
|
|
@ -1,18 +0,0 @@
|
||||||
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
|
|
||||||
35
.woodpecker/publish.yaml
Normal file
35
.woodpecker/publish.yaml
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
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,5 +1,8 @@
|
||||||
FROM docker.io/fedora:40
|
# Podman for running in container pre-installed
|
||||||
|
# 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 gcc gcc-c++ git podman
|
RUN dnf install -y java-21-openjdk-headless nodejs python \
|
||||||
|
gcc gcc-c++ git graphviz ruby
|
||||||
|
|
||||||
CMD ["/bin/bash"]
|
CMD ["/bin/bash"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue