-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Worker (fork) | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
image: | ||
description: "The Docker image" | ||
value: '' | ||
version: | ||
description: "The version for the image" | ||
value: '' | ||
digest: | ||
description: "The build digest for the image" | ||
value: '' | ||
tag: | ||
description: "Combines image and version to a valid image tag" | ||
value: '' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
context: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/context | ||
|
||
login_ghcr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Login to Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ github.token }} | ||
logout: false | ||
- shell: bash | ||
run: | | ||
docker system info | ||
cat ~/.docker/config.json | ||
build: | ||
runs-on: ubuntu-latest | ||
needs: [context, login_ghcr] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- shell: bash | ||
run: | | ||
docker system info | ||
cat ~/.docker/config.json | ||
# Build and upload image as artifact | ||
|
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