Marc Cataford
5a4b129e42
Some checks failed
/ build-images (ubuntu-2204) (push) Has been cancelled
ci: tag image as latest
27 lines
921 B
YAML
27 lines
921 B
YAML
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
env:
|
|
REGISTRY_ENDPOINT: host.containers.internal:5000
|
|
|
|
jobs:
|
|
build-images:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
image-name: ['ubuntu-2204']
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Login to Registry
|
|
run: podman login -u ${{ secrets.REGISTRY_USER }} -p ${{ secrets.REGISTRY_TOKEN }} ${{ env.REGISTRY_ENDPOINT }}
|
|
- name: Set image metadata
|
|
id: image-metadata
|
|
run: |
|
|
echo "image-tag=$(./script/get-tag.sh)" >> $GITHUB_OUTPUT
|
|
echo "full-image-name=${{ matrix.image-name }}:$(./script/get-tag.sh)" >> $GITHUB_OUTPUT
|
|
- name: Build image
|
|
run: ./script/build-image.sh ${{ matrix.image-name }} ${{ steps.image-metadata.outputs.image-tag }}
|
|
- name: Tag image as latest
|
|
run: podman tag ${{ steps.image-metadata.outputs.full-image-name }} ${{ matrix.image-name }}:latest
|