Skip to content

Commit 282d1ca

Browse files
Trying to fix meta data on release of #ts container (#62)
1 parent b7d5764 commit 282d1ca

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

.github/workflows/texer.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
build_and_publish:
1818

1919
runs-on: ubuntu-latest
20+
if: >
21+
( github.event_name == 'pull_request' && contains(github.event.pull_request.title, '#te')) ||
22+
( github.event_name == 'release' && startsWith(github.ref, 'refs/tags/te'))
2023
2124
steps:
2225
- uses: actions/checkout@v3
@@ -27,12 +30,12 @@ jobs:
2730
with:
2831
tagRegex: "(${{ env.IMAGE_VERSION_PREFIX }}).*"
2932
- name: dryrun-build
30-
if: >
31-
( github.event_name == 'pull_request' && contains(github.event.pull_request.title, '#te')) ||
32-
( github.event_name == 'release' && startsWith(github.ref, 'refs/tags/te'))
3333
run: docker build ./${{ env.IMAGE_NAME }}
3434
- name: build-and-push
35-
if: ${{ github.event_name == 'release' && startsWith( steps.process_event.outputs.tag, env.IMAGE_VERSION_PREFIX ) && !github.event.release.prerelease }}
35+
if: >
36+
github.event_name == 'release' &&
37+
startsWith( steps.process_event.outputs.tag, env.IMAGE_VERSION_PREFIX ) &&
38+
!github.event.release.prerelease
3639
uses: macbre/push-to-ghcr@master
3740
with:
3841
context: ./${{ env.IMAGE_NAME }}

.github/workflows/toolshed.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ jobs:
5454
context: toolshed
5555
platforms: ${{ matrix.platform }}
5656
labels: ${{ steps.meta.outputs.labels }}
57-
tags: ${{ steps.meta.outputs.tags }}
5857
annotations: ${{ steps.meta.outputs.annotations }}
5958
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=${{ (github.event_name != 'pull_request' && !github.event.release.prerelease) && 'true' || 'false' }}
6059

@@ -116,7 +115,6 @@ jobs:
116115
context: toolshed
117116
platforms: ${{ matrix.platform }}
118117
labels: ${{ steps.meta.outputs.labels }}
119-
tags: ${{ steps.meta.outputs.tags }}
120118
annotations: ${{ steps.meta.outputs.annotations }}
121119
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=${{ (github.event_name != 'pull_request' && !github.event.release.prerelease) && 'true' || 'false' }}
122120

@@ -137,7 +135,10 @@ jobs:
137135
retention-days: 1
138136

139137
merge-ts:
140-
if: ${{ github.event_name == 'release' && startsWith( github.ref, 'refs/tags/ts' ) && !github.event.release.prerelease }}
138+
if: >
139+
github.event_name == 'release' &&
140+
startsWith( github.ref, 'refs/tags/ts' ) &&
141+
!github.event.release.prerelease
141142
runs-on: ubuntu-latest
142143
needs:
143144
- release-ts-amd64

.github/workflows/toxic.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ jobs:
7979
retention-days: 1
8080

8181
merge-tx:
82-
if: ${{ github.event_name == 'release' && startsWith( github.ref, 'refs/tags/tx' ) && !github.event.release.prerelease }}
82+
if: >
83+
github.event_name == 'release' &&
84+
startsWith( github.ref, 'refs/tags/tx' ) &&
85+
!github.event.release.prerelease
8386
runs-on: ubuntu-latest
8487
needs:
8588
- release-tx

0 commit comments

Comments
 (0)