2025-01-18 12:39:28 +01:00
|
|
|
---
|
2025-01-21 22:25:56 +01:00
|
|
|
on:
|
2025-01-26 16:00:17 +01:00
|
|
|
push:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
env:
|
|
|
|
CONTAINERFILE: Containerfile
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-01-18 12:39:28 +01:00
|
|
|
jobs:
|
2025-01-26 16:00:17 +01:00
|
|
|
container_build:
|
|
|
|
runs-on: private-vault
|
2025-01-21 21:17:47 +01:00
|
|
|
steps:
|
2025-01-26 16:00:17 +01:00
|
|
|
- name: Fetch repo
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: buildah build
|
|
|
|
run: "buildah build -t image ${{ env.CONTAINERFILE }}"
|
|
|
|
- name: skopeo copy image
|
|
|
|
run: "skopeo copy --dest-precompute-digests --image-parallel-copies 4 --dest-registry-token ${{ env.GITHUB_TOKEN }} containers-storage:image ${{ env.GITHUB_SERVER_URL }}/${{ env.GITHUB_REPOSITORY }}"
|
|
|
|
- name: Cleanup
|
|
|
|
run: "buildah prune -af"
|