Upload release artifacts #6
Workflow file for this run
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: Upload release artifacts | |
on: | |
workflow_dispatch: | |
inputs: | |
release_tag: | |
description: "The release tag to target" | |
permissions: | |
id-token: write | |
contents: write | |
packages: write | |
jobs: | |
docker-multiplatform-image: | |
name: "Assemble multi-platform Docker image" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Log in to registry | |
run: echo "${{ secrets.GH_TOKEN_FOR_UPDATES }}" | docker login ghcr.io -u $ --password-stdin | |
- name: Assemble and push image | |
env: | |
RELEASE_TAG: ${{ github.event_name == 'release' && github.event.release.tag_name || github.event.inputs.release_tag }} | |
run: | | |
docker manifest create \ | |
ghcr.io/tweag/nickel:$RELEASE_TAG \ | |
ghcr.io/tweag/nickel:$RELEASE_TAG-x86_64 \ | |
ghcr.io/tweag/nickel:$RELEASE_TAG-arm64 \ | |
docker manifest push ghcr.io/tweag/nickel:$RELEASE_TAG | |