wip: blank #2
1 changed files with 4 additions and 7 deletions
|
@ -24,9 +24,6 @@ jobs:
|
|||
build-images:
|
||||
needs: [pre-run]
|
||||
runs-on: imagefactory-latest
|
||||
strategy:
|
||||
matrix:
|
||||
image-name: ['debian-12.6-slim']
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
|
@ -38,18 +35,18 @@ jobs:
|
|||
id: image-metadata
|
||||
run: |
|
||||
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
|
||||
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
|
||||
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
|
||||
run: podman image ls
|
||||
- name: Push tagged image to registry
|
||||
if: ${{ github.event_name == "push" }}
|
||||
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/${{ 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:
|
||||
runs-on: imagefactory-latest
|
||||
needs: [build-images]
|
||||
|
|
Loading…
Reference in a new issue