Files
xread/.github/workflows/image.yml
T
dependabot[bot] 15efe83fb7 chore(deps): bump docker/metadata-action in the github-actions group (#55)
Bumps the github-actions group with 1 update: [docker/metadata-action](https://github.com/docker/metadata-action).


Updates `docker/metadata-action` from a7807070e67ad478bd5f672f499303a151742e53 to deaa0dee567db6b95038c14152b037af85a8fe3b
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](https://github.com/docker/metadata-action/compare/a7807070e67ad478bd5f672f499303a151742e53...deaa0dee567db6b95038c14152b037af85a8fe3b)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-version: deaa0dee567db6b95038c14152b037af85a8fe3b
  dependency-type: direct:production
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-20 01:40:26 +00:00

69 lines
1.9 KiB
YAML

name: Container Image
on:
push:
branches:
- main
tags:
- v*
workflow_dispatch:
permissions:
contents: read
packages: write
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
concurrency:
group: image-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
docker:
name: Build container image
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Prepare licensed assets
run: node ./scripts/prepare-licensed-assets.cjs
- name: Derive image name
id: vars
run: echo "image_name=ghcr.io/${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Extract image metadata
id: meta
uses: docker/metadata-action@deaa0dee567db6b95038c14152b037af85a8fe3b
with:
images: ${{ steps.vars.outputs.image_name }}
tags: |
type=ref,event=branch
type=ref,event=tag
type=sha,prefix=sha-
type=raw,value=latest,enable={{is_default_branch}}
- name: Log in to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and optionally publish image
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max