Skip to content

lowercase image name #14

lowercase image name

lowercase image name #14

Workflow file for this run

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

Check failure on line 8 in .github/workflows/deploy-image.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/deploy-image.yml (Line: 8, Col: 15): Unexpected symbol: '|'. Located at position 19 within expression: github.repository | toLower
jobs:
build-and-push-image:
runs-on:
- ubuntu-latest
# - macos-latest
permissions:
contents: read
packages: write
steps:
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
test-shapepipe-image:
runs-on: ubuntu-latest
needs: build-and-push-image
steps:
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pull Docker Image
run: docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
- name: Test Shapepipe
run: docker run --rm ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest shapepipe_run -c /app/example/config.ini