Skip to content

Update changelog

Update changelog #56

Workflow file for this run

name: Release to ghrc.io
on:
push:
tags:
- 'v*'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker compose build and push
id: docker-build-push
run: |
cd docker
# Define image types in an array
IMAGE_TYPES=("base" "builder" "devel")
# Build images
docker compose -f docker-compose.yml build ${IMAGE_TYPES[@]}
# Tag and push images
for type in "${IMAGE_TYPES[@]}"; do
# Tag latest and version
docker tag vrx-${type}:latest ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${type}:latest
docker tag vrx-${type}:latest ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${type}:${{ github.ref_name }}
# Push latest and versioned tags
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${type}:latest
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${type}:${{ github.ref_name }}
done