Skip to content

Publish Trusted Sync Binary Image #13

Publish Trusted Sync Binary Image

Publish Trusted Sync Binary Image #13

name: Publish Trusted Sync Binary Image
on:
workflow_dispatch:
env:
REGISTRY: ghcr.io
jobs:
publish-ghcr:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
env:
IMAGE_NAME: ${{ github.repository }}/trusted-sync
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Authenticate with container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and Publish `trusted-sync`
uses: docker/build-push-action@v6
with:
file: examples/trusted-sync/Dockerfile
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}