Skip to content

Update CHANGELOG.md to include version v1.0.2 #21

Update CHANGELOG.md to include version v1.0.2

Update CHANGELOG.md to include version v1.0.2 #21

Workflow file for this run

---
name: Publish to GHCR
on:
push:
tags:
- v*
workflow_dispatch:
jobs:
publish:
name: Publish to GHCR
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Extract Docker metadata
id: metadata
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
flavor: |
latest=auto
tags: |
type=ref,event=branch
type=ref,event=pr
type=ref,event=tag
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}.{{minor}}
type=sha
type=raw,value=latest,enable={{is_default_branch}}
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: spartan-ductduong
password: ${{ secrets.PAT }}
- name: Build & push
uses: docker/build-push-action@v4
with:
context: .
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
labels: ${{ steps.metadata.outputs.labels }}
tags: ${{ steps.metadata.outputs.tags }}