Skip to content

Do it like on gitlab #3

Do it like on gitlab

Do it like on gitlab #3

Workflow file for this run

on:
- push
env:
REGISTRY: ghcr.io/${{ github.repository }}
TAG: ${{ env.REGISTRY }}:${{ github.ref_name }}

Check failure on line 5 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yaml

Invalid workflow file

The workflow is not valid. .github/workflows/build.yaml (Line: 5, Col: 8): Unrecognized named-value: 'env'. Located at position 1 within expression: env.REGISTRY
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
podman login
--username ${{ github.actor }}
--password ${{ github.token }}
${{ env.REGISTRY }}
- run: |
podman build
--tag ${{ env.TAG }}
.
- run: |
podman push
${{ env.TAG }}