Skip to content

Commit

Permalink
TMP: more
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinMind committed Jun 26, 2024
1 parent 7027f32 commit 62ec5f9
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/build.yml
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

3 changes: 3 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ permissions:
# 2. add caching based on fork behaviour, use GHA cache or registry..

jobs:
build_call:
uses: ./.github/workflows/build.yml

build:
runs-on: ubuntu-latest

Expand Down

0 comments on commit 62ec5f9

Please sign in to comment.