Skip to content

lowercase for tags

lowercase for tags #2

Workflow file for this run

name: Create and publish a Docker image
on:
push:
branches:
- main
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository | toLowerCase}}

Check failure on line 9 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Create and publish a Docker image

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 9, Col: 17): Unexpected symbol: '|'. Located at position 19 within expression: github.repository | toLowerCase
jobs:
publish-docker-images-matrix:
runs-on: ubuntu-latest
strategy:
matrix:
version: [ 3.8.5, 3.8.6 ] # Define versions for matrix build http://ww2.biocase.org/svn/bps2/tags/
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: |
docker build \
--build-arg BIOCASE_VERSION=${{ matrix.version }} \
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.version }} .
- name: Push Docker image
run: |
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.version }}