Skip to content

chore(deps): update release-drafter/release-drafter digest to b1476f6… #161

chore(deps): update release-drafter/release-drafter digest to b1476f6…

chore(deps): update release-drafter/release-drafter digest to b1476f6… #161

Workflow file for this run

name: Deploy Images to GHCR
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
on:
push:
branches:
- main
tags:
- "v*"
release:
types:
- published
workflow_dispatch:
jobs:
push-image:
runs-on: ubuntu-latest
strategy:
matrix:
node: [10, 12]
permissions:
contents: read
packages: write
steps:
- name: "Checkout GitHub Action"
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Log in to the Container registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
github-token: ${{ github.token }}
flavor: |
latest=auto
suffix=${{ matrix.node != 10 && format('-node{0}', matrix.node) || '' }},onlatest=true
tags: |
type=edge,branch=main
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }}
type=sha
- name: Build and push Docker image
uses: docker/build-push-action@b32b51a8eda65d6793cd0494a773d4f6bcef32dc # v6
with:
context: server
push: true
build-args: |
NODE_VERSION=${{ matrix.node }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max