Bumps the github-actions group with 6 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4` | `6` | | [actions/setup-node](https://github.com/actions/setup-node) | `4` | `6` | | [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) | `3` | `4` | | [docker/metadata-action](https://github.com/docker/metadata-action) | `9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7` | `4378dc6be7f72231dfe78ac7e0364a44f1c9f54b` | | [docker/login-action](https://github.com/docker/login-action) | `65b78e6e13532edd9afa3aa52ac7964289d1a9c1` | `a0d57b8e43b6ef1cca20559d68cec2227e63fccd` | | [docker/build-push-action](https://github.com/docker/build-push-action) | `f2a1d5e99d037542a71f64918e516c093c6f3fc4` | `b66d8774c665b789105b440514f0c97e6f19b06f` | Updates `actions/checkout` from 4 to 6 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v6) Updates `actions/setup-node` from 4 to 6 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v4...v6) Updates `docker/setup-buildx-action` from 3 to 4 - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](https://github.com/docker/setup-buildx-action/compare/v3...v4) Updates `docker/metadata-action` from 9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 to 4378dc6be7f72231dfe78ac7e0364a44f1c9f54b - [Release notes](https://github.com/docker/metadata-action/releases) - [Commits](https://github.com/docker/metadata-action/compare/9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7...4378dc6be7f72231dfe78ac7e0364a44f1c9f54b) Updates `docker/login-action` from 65b78e6e13532edd9afa3aa52ac7964289d1a9c1 to a0d57b8e43b6ef1cca20559d68cec2227e63fccd - [Release notes](https://github.com/docker/login-action/releases) - [Commits](https://github.com/docker/login-action/compare/65b78e6e13532edd9afa3aa52ac7964289d1a9c1...a0d57b8e43b6ef1cca20559d68cec2227e63fccd) Updates `docker/build-push-action` from f2a1d5e99d037542a71f64918e516c093c6f3fc4 to b66d8774c665b789105b440514f0c97e6f19b06f - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/f2a1d5e99d037542a71f64918e516c093c6f3fc4...b66d8774c665b789105b440514f0c97e6f19b06f) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/setup-node dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: docker/setup-buildx-action dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: docker/metadata-action dependency-version: 4378dc6be7f72231dfe78ac7e0364a44f1c9f54b dependency-type: direct:production dependency-group: github-actions - dependency-name: docker/login-action dependency-version: a0d57b8e43b6ef1cca20559d68cec2227e63fccd dependency-type: direct:production dependency-group: github-actions - dependency-name: docker/build-push-action dependency-version: b66d8774c665b789105b440514f0c97e6f19b06f 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>
78 lines
2.1 KiB
YAML
78 lines
2.1 KiB
YAML
name: Container Image
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- Dockerfile
|
|
- package.json
|
|
- package-lock.json
|
|
- tsconfig.json
|
|
- integrity-check.cjs
|
|
- src/**
|
|
- public/**
|
|
- licensed/**
|
|
- scripts/**
|
|
- .github/workflows/image.yml
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- v*
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
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@4378dc6be7f72231dfe78ac7e0364a44f1c9f54b
|
|
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@a0d57b8e43b6ef1cca20559d68cec2227e63fccd
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build and optionally publish image
|
|
uses: docker/build-push-action@b66d8774c665b789105b440514f0c97e6f19b06f
|
|
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
|