Skip to content

docs(README.md): update with version information #36

docs(README.md): update with version information

docs(README.md): update with version information #36

name: build and publish container
permissions:
packages: write
contents: write
on:
workflow_dispatch:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+*
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
ghcr.io/openchami/coresmd
# generate Docker tags based on the following events/attributes
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{raw}}
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to github container repo
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push coresmd container
uses: docker/build-push-action@v5
with:
platforms: linux/amd64
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Generate changelog
id: changelog
uses: requarks/changelog-action@v1
with:
tag: ${{ github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}
useGitmojis: false
writeToFile: false
restrictToTypes: 'feat,feature,fix,bugfix,perf,refactor,test,tests,chore,ci,docs,build,other'
- name: Create a release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.changes }}