renovate: use loose
versioning for chromium-swiftshader-alpine
#78
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish container | |
permissions: | |
contents: read | |
packages: write | |
on: | |
push: | |
branches: | |
- "main" | |
tags: | |
- "v*" | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 0 # Needed for the version script to work. | |
- name: Compute repo metadata | |
id: repo | |
run: |- | |
echo "version=$(./scripts/version)" >> $GITHUB_OUTPUT | |
cat $GITHUB_OUTPUT | |
# grafana/shared-workflows/actions/push-to-gar-docker runs setup-buildx, but not setup-qemu. | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3 | |
- name: Log into ghcr.io | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6 | |
with: | |
tags: |- | |
ghcr.io/${{ github.repository }}:${{ steps.repo.outputs.version }} | |
push: true | |
platforms: linux/amd64,linux/arm64 |