Skip to content

Bump actions/setup-node from 3 to 4 (#381) #223

Bump actions/setup-node from 3 to 4 (#381)

Bump actions/setup-node from 3 to 4 (#381) #223

Workflow file for this run

name: Publish Docker
on:
push:
branches:
- main
release:
types: [published, created, edited]
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout DIDKit repository
uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/metadata-action@v5
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@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
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