Skip to content

merge: fix typo in publish workflow #5

merge: fix typo in publish workflow

merge: fix typo in publish workflow #5

Workflow file for this run

name: build and publish
on:
push:
tags: [v*]
jobs:
build-and-publish:
permissions:
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 }}