Skip to content

ci: add github workflow for publishing container images #4

ci: add github workflow for publishing container images

ci: add github workflow for publishing container images #4

Workflow file for this run

name: Publish Container Images

Check failure on line 1 in .github/workflows/images.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/images.yml

Invalid workflow file

(Line: 12, Col: 20): Unrecognized named-value: 'env'. Located at position 1 within expression: env.REGISTRY
on:
push:
branches:
- main
tags:
- v[0-9]+.[0-9]+.[0-9]+
env:
REGISTRY: ghcr.io
IMAGE_REPO_BASE: ${{ env.REGISTRY}}/${{ github.repository }}
jobs:
publish-images:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Log in to registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push images
run: |
GITREF=${{ github.ref }}
case $GITREF in
refs/heads/main)
VERSION=unstable
;;
*)
;;
esac
make plugin-images
make plugin-images-push