Skip to content

Commit

Permalink
Add a docker manifest test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vkleen committed Sep 5, 2023
1 parent 1249c3d commit d5349a1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test-docker-manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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
permissions: write-all
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

0 comments on commit d5349a1

Please sign in to comment.