wip: blank #2
2 changed files with 12 additions and 9 deletions
|
@ -8,6 +8,11 @@ env:
|
||||||
REGISTRY_ENDPOINT: host.containers.internal:5000
|
REGISTRY_ENDPOINT: host.containers.internal:5000
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
debug:
|
||||||
|
runs-on: imagefactory-latest
|
||||||
|
steps:
|
||||||
|
- run: git clone https://forge.karnov.club/spadinastan/runner-images.git
|
||||||
|
- uses: actions/checkout@v4
|
||||||
pre-run:
|
pre-run:
|
||||||
runs-on: imagefactory-latest
|
runs-on: imagefactory-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -19,9 +24,6 @@ jobs:
|
||||||
build-images:
|
build-images:
|
||||||
needs: [pre-run]
|
needs: [pre-run]
|
||||||
runs-on: imagefactory-latest
|
runs-on: imagefactory-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
image-name: ['debian-12.6-slim']
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
|
@ -33,18 +35,18 @@ jobs:
|
||||||
id: image-metadata
|
id: image-metadata
|
||||||
run: |
|
run: |
|
||||||
echo "image-tag=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
echo "image-tag=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
echo "full-image-name=${{ matrix.image-name }}:$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
echo "full-image-name=debian-12.6-slim:$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: python ./build_image.py ${{ steps.image-metadata.outputs.full-image-name }} ./images/${{ matrix.image-name }}/Dockerfile
|
run: python ./build_image.py ${{ steps.image-metadata.outputs.full-image-name }} ./images/debian-12.6-slim/Dockerfile
|
||||||
- name: Tag image as latest
|
- name: Tag image as latest
|
||||||
run: podman tag ${{ steps.image-metadata.outputs.full-image-name }} ${{ matrix.image-name }}:latest
|
run: podman tag ${{ steps.image-metadata.outputs.full-image-name }} debian-12.6-slim:latest
|
||||||
- name: List images
|
- name: List images
|
||||||
run: podman image ls
|
run: podman image ls
|
||||||
- name: Push tagged image to registry
|
- name: Push tagged image to registry
|
||||||
if: ${{ github.event_name == "push" }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
run: |
|
run: |
|
||||||
podman push ${{ steps.image-metadata.outputs.full-image-name }} ${{ env.REGISTRY_ENDPOINT }}/forge-runners/${{ steps.image-metadata.outputs.full-image-name }}
|
podman push ${{ steps.image-metadata.outputs.full-image-name }} ${{ env.REGISTRY_ENDPOINT }}/forge-runners/${{ steps.image-metadata.outputs.full-image-name }}
|
||||||
podman push ${{ steps.image-metadata.outputs.full-image-name }} ${{ env.REGISTRY_ENDPOINT }}/forge-runners/${{ matrix.image-name }}:latest
|
podman push ${{ steps.image-metadata.outputs.full-image-name }} ${{ env.REGISTRY_ENDPOINT }}/forge-runners/debian-12.6-slim:latest
|
||||||
post-run:
|
post-run:
|
||||||
runs-on: imagefactory-latest
|
runs-on: imagefactory-latest
|
||||||
needs: [build-images]
|
needs: [build-images]
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
# runner-images
|
# runner-images
|
||||||
|
|
||||||
|
|
||||||
Image factory for Forgejo action runners
|
Image factory for Forgejo action runners
|
Loading…
Reference in a new issue