Skip to content

Test Deployment

Test Deployment #1

Workflow file for this run

name: Test Deployment
on:
workflow_dispatch:
jobs:
publish-docker:

Check failure on line 7 in .github/workflows/test-deploy.yml

View workflow run for this annotation

GitHub Actions / Test Deployment

Invalid workflow file

The workflow is not valid. .github/workflows/test-deploy.yml (Line: 7, Col: 3): The workflow must contain at least one job with no dependencies.
runs-on: ubuntu-latest
needs: publish-maven
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ secrets.DOCKERHUB_USERNAME }}/oidc-server-mock
ghcr.io/${{ github.repository }}
tags: |
experimental
- uses: docker/build-push-action@v6
id: push
with:
context: ./src
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,compression=zstd,force-compression=true
- name: Generate artifact attestation (ghcr.io)
uses: actions/attest-build-provenance@v1
with:
subject-name: ghcr.io/${{ github.repository }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true