Skip to content

merge: fix some container image related issues #4

merge: fix some container image related issues

merge: fix some container image related issues #4

Workflow file for this run

name: build and publish
on:
push:
tags: [v*]
jobs:
build-and-publish:
permisssions:

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

View workflow run for this annotation

GitHub Actions / build and publish

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 9, Col: 5): Unexpected value 'permisssions'
contents: read
packages: write
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: build image
id: build
uses: redhat-actions/buildah-build@v2
with:
containerfiles: ./Containerfile
tags: ${{ steps.meta.outputs.tags }}
- name: log in to ghcr.io
uses: redhat-actions/podman-login@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: push image
uses: redhat-actions/push-to-registry@v2
with:
tags: ${{ steps.build.outputs.tags }}