From 38caba3b9fd00d6827d5c2fdf30b7169bf8d083a Mon Sep 17 00:00:00 2001 From: "Andrew W. Harn" Date: Thu, 5 Sep 2024 16:21:53 -0400 Subject: [PATCH] Update workflows to allow publishing to GHCR Signed-off-by: Andrew W. Harn --- .github/workflows/cli-alpine-basic.yaml | 2 ++ .github/workflows/cli-alpine-minimal.yaml | 2 ++ .github/workflows/cli-basic-with-nvm.yaml | 2 ++ .github/workflows/cli-basic.yaml | 2 ++ .github/workflows/cli-jenkins-agent.yaml | 2 ++ .github/workflows/cli-minimal.yaml | 2 ++ .github/workflows/docker-reusable.yaml | 1 - .github/workflows/ze-theia-slim.yaml | 3 ++- 8 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cli-alpine-basic.yaml b/.github/workflows/cli-alpine-basic.yaml index 3e76789..5309277 100644 --- a/.github/workflows/cli-alpine-basic.yaml +++ b/.github/workflows/cli-alpine-basic.yaml @@ -12,6 +12,8 @@ on: jobs: build-and-deploy-alpine-basic: uses: ./.github/workflows/docker-reusable.yaml + permissions: + packages: write with: name: cli-alpine-basic path: cli/alpine-basic diff --git a/.github/workflows/cli-alpine-minimal.yaml b/.github/workflows/cli-alpine-minimal.yaml index 8659994..051f30f 100644 --- a/.github/workflows/cli-alpine-minimal.yaml +++ b/.github/workflows/cli-alpine-minimal.yaml @@ -12,6 +12,8 @@ on: jobs: build-and-deploy-alpine-minimal: uses: ./.github/workflows/docker-reusable.yaml + permissions: + packages: write with: name: cli-alpine-minimal path: cli/alpine-minimal diff --git a/.github/workflows/cli-basic-with-nvm.yaml b/.github/workflows/cli-basic-with-nvm.yaml index e707203..d8f422b 100644 --- a/.github/workflows/cli-basic-with-nvm.yaml +++ b/.github/workflows/cli-basic-with-nvm.yaml @@ -12,6 +12,8 @@ on: jobs: build-and-deploy-basic-with-nvm: uses: ./.github/workflows/docker-reusable.yaml + permissions: + packages: write with: name: cli-basic-with-nvm path: cli/basic-with-nvm diff --git a/.github/workflows/cli-basic.yaml b/.github/workflows/cli-basic.yaml index 5019e6f..c20f796 100644 --- a/.github/workflows/cli-basic.yaml +++ b/.github/workflows/cli-basic.yaml @@ -12,6 +12,8 @@ on: jobs: build-and-deploy-basic: uses: ./.github/workflows/docker-reusable.yaml + permissions: + packages: write with: name: cli-basic path: cli/basic diff --git a/.github/workflows/cli-jenkins-agent.yaml b/.github/workflows/cli-jenkins-agent.yaml index 7ff46de..3b66765 100644 --- a/.github/workflows/cli-jenkins-agent.yaml +++ b/.github/workflows/cli-jenkins-agent.yaml @@ -12,6 +12,8 @@ on: jobs: build-and-deploy-jenkins-agent: uses: ./.github/workflows/docker-reusable.yaml + permissions: + packages: write with: name: cli-jenkins-agent path: cli/jenkins-agent diff --git a/.github/workflows/cli-minimal.yaml b/.github/workflows/cli-minimal.yaml index 1d4d971..b273cf4 100644 --- a/.github/workflows/cli-minimal.yaml +++ b/.github/workflows/cli-minimal.yaml @@ -12,6 +12,8 @@ on: jobs: build-and-deploy-minimal: uses: ./.github/workflows/docker-reusable.yaml + permissions: + packages: write with: name: cli-minimal path: cli/minimal diff --git a/.github/workflows/docker-reusable.yaml b/.github/workflows/docker-reusable.yaml index 1d27fd4..a29dd57 100644 --- a/.github/workflows/docker-reusable.yaml +++ b/.github/workflows/docker-reusable.yaml @@ -31,7 +31,6 @@ jobs: build-and-deploy: runs-on: ubuntu-latest timeout-minutes: ${{ inputs.timeout }} - steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/ze-theia-slim.yaml b/.github/workflows/ze-theia-slim.yaml index 47bdcfb..ea071fd 100644 --- a/.github/workflows/ze-theia-slim.yaml +++ b/.github/workflows/ze-theia-slim.yaml @@ -26,7 +26,6 @@ jobs: outputs: docker-tags: ${{ steps.load-env.outputs.DOCKER_TAGS }} theia-version: ${{ steps.load-env.outputs.THEIA_VERSION }} - steps: - name: Checkout uses: actions/checkout@v4 @@ -38,6 +37,8 @@ jobs: build-and-deploy: needs: setup uses: ./.github/workflows/docker-reusable.yaml + permissions: + packages: write with: build-args: | THEIA_VERSION=${{ needs.setup.outputs.theia-version }}