Skip to content

Fix the release artifacts workflow #1

Fix the release artifacts workflow

Fix the release artifacts workflow #1

name: Upload release artifacts
on:
pull_request:
workflow_dispatch:
inputs:
release_tag:
description: "The release tag to target"
permissions:
id-token: write
contents: write
packages: write
jobs:
docker-multiplatform-image:

Check failure on line 15 in .github/workflows/test-docker-manifest.yaml

View workflow run for this annotation

GitHub Actions / Upload release artifacts

Invalid workflow file

The workflow is not valid. .github/workflows/test-docker-manifest.yaml (Line: 15, Col: 3): The workflow must contain at least one job with no dependencies.
name: "Assemble multi-platform Docker image"
runs-on: ubuntu-latest
needs: release-artifacts
steps:
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | 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