Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Anders da Silva Rytter Hansen
c365d3438b PODMAN_USERNS: disabled
Some checks failed
os / build (push) Has been cancelled
2026-05-02 11:27:36 -03:00
Anders da Silva Rytter Hansen
4b53105631 switch to podman instead of buildah
Some checks failed
os / build (push) Failing after 11s
2026-05-02 11:24:50 -03:00
Anders da Silva Rytter Hansen
7dfbeb41cb --storage-driver=vfs
Some checks failed
os / build (push) Has been cancelled
2026-05-02 11:22:17 -03:00
Anders da Silva Rytter Hansen
777ae24e4e fix buildah error
Some checks failed
os / build (push) Failing after 8s
2026-05-02 11:16:42 -03:00

View file

@ -17,6 +17,8 @@ on:
env:
REGISTRY: forge.pc-rytteren.dk
IMAGE_NAME: ${{ github.repository }}
STORAGE_DRIVER: vfs
PODMAN_USERNS: disabled
jobs:
build:
@ -28,6 +30,16 @@ jobs:
steps:
- name: Configure Buildah storage
run: |
mkdir -p ~/.config/containers
cat > ~/.config/containers/storage.conf <<EOF
[storage]
driver = "vfs"
runroot = "/tmp/run"
graphroot = "/tmp/storage"
EOF
- name: Get current date
id: date
run: echo "date=$(date +'%Y%m%d')" >> $FORGEJO_OUTPUT
@ -50,13 +62,13 @@ jobs:
- name: Log into Forgejo Container Registry
if: github.event_name != 'pull_request'
run: |
buildah login -u ${{ github.actor }} -p ${{ secrets.PACKAGE_TOKEN }} ${{ env.REGISTRY }}
podman login -u ${{ github.actor }} -p ${{ secrets.PACKAGE_TOKEN }} ${{ env.REGISTRY }}
- name: Build image with Buildah
id: build-image
run: |
# Vi bygger med 'raw-img' lokalt
buildah bud \
podman build \
--label "org.opencontainers.image.source=https://forge.pc-rytteren.dk/${{ github.repository }}" \
-t raw-img .
@ -69,8 +81,8 @@ jobs:
run: |
for tag in $(echo "${{ steps.meta.outputs.tags }}"); do
echo "Tagging and pushing: $tag"
buildah tag raw-img "$tag"
buildah push "$tag"
podman tag raw-img "$tag"
podman push "$tag"
done
- name: Install cosign