Skip to content

fix: publish public versioned image tags #9

fix: publish public versioned image tags

fix: publish public versioned image tags #9

Workflow file for this run

name: Publish image
on:
push:
branches: [main]
tags: ["v*"]
workflow_dispatch:
permissions:
contents: read
packages: write
env:
IMAGE_NAME: ghcr.io/randomcodespace/agentmemory-setup-public
AGENTMEMORY_VERSION: 0.9.27
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
with:
images: ${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=${{ env.AGENTMEMORY_VERSION }},enable={{is_default_branch}}
type=raw,value=v${{ env.AGENTMEMORY_VERSION }},enable={{is_default_branch}}
type=sha,prefix=
type=ref,event=tag
- uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- uses: aquasecurity/trivy-action@v0.36.0
with:
image-ref: ${{ env.IMAGE_NAME }}:latest
format: table
severity: CRITICAL,HIGH
ignore-unfixed: true
exit-code: "1"