Skip to content

Commit 2c0b641

Browse files
authored
Tweaks to image publishing flow (#742)
Tweaks to image publish workflow Signed-off-by: Emiliano Suñé <emiliano.sune@gmail.com>
1 parent d7e1102 commit 2c0b641

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

.github/workflows/on_push_main.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
name: Build, Update Config, and Deploy Development
1+
name: Build latest development image
22
on:
33
workflow_dispatch:
44
push:
55
branches:
66
- main
7+
paths:
8+
- "docker/oidc-controller/**"
9+
- "oidc-controller/**"
10+
- "html-templates/**"
11+
- "pyproject.toml"
12+
- "poetry.lock"
713
jobs:
814
build:
915
name: "Build ACAPy VC-AuthN"
1016
if: github.repository_owner == 'openwallet-foundation'
1117
uses: ./.github/workflows/publish.yml
1218
with:
13-
tag: "dev"
1419
ref: "main"
15-
platforms: "linux/amd64"
16-
20+
platforms: "linux/amd64,linux/arm64"

.github/workflows/publish.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
name: Publish ACAPy VC-AuthN Image
2-
run-name: Publish ACAPy VC-AuthN ${{ inputs.tag || github.event.release.tag_name }} Image
2+
run-name: Publish ACAPy VC-AuthN ${{ github.ref_name || github.event.release.tag_name }} Image
33
on:
44
release:
55
types: [published]
66
workflow_call:
77
inputs:
8-
tag:
9-
description: "Image tag"
10-
required: true
11-
type: string
128
platforms:
139
description: "Platforms - Comma separated list of the platforms to support."
1410
required: true
15-
default: linux/amd64
11+
default: linux/amd64,linux/arm64
1612
type: string
1713
ref:
1814
description: "Optional - The branch, tag or SHA to checkout."
@@ -28,14 +24,10 @@ on:
2824

2925
workflow_dispatch:
3026
inputs:
31-
tag:
32-
description: "Image tag"
33-
required: true
34-
type: string
3527
platforms:
3628
description: "Platforms - Comma separated list of the platforms to support."
3729
required: true
38-
default: linux/amd64
30+
default: linux/amd64,linux/arm64
3931
type: string
4032
ref:
4133
description: "Optional - The branch, tag or SHA to checkout."
@@ -94,8 +86,11 @@ jobs:
9486
tags: |
9587
type=semver,pattern={{version}}
9688
type=semver,pattern={{major}}.{{minor}}
97-
type=ref,event=pr
98-
type=sha
89+
# set dev tag when building from the default branch (main)
90+
type=raw,value=dev,enable={{is_default_branch}}
91+
# set latest tag for published release
92+
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}
93+
9994
10095
- name: Build and Push Image to ghcr.io
10196
uses: docker/build-push-action@v6

0 commit comments

Comments
 (0)