Skip to content

Fix Docker build to use released didkit version #203

Fix Docker build to use released didkit version

Fix Docker build to use released didkit version #203

Workflow file for this run

name: Publish Docker
on:
push:
branches:
- main
- "feat/rewrite-vc-api"
release:
types: [published, created, edited]
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout DIDKit repository
uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: docker/metadata-action@v4
id: meta
with:
images: |
ghcr.io/spruceid/didkit-http
tags: |
type=ref,event=branch
type=sha,prefix={{date 'YYYYMMDDHHmmss'}}
type=raw,value=latest,enable={{is_default_branch}}
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.SBIHEL_GH_PACKAGE_PUSH_TOKEN }}
- uses: docker/build-push-action@v4
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
context: ./http