Skip to content

Commit 81934e3

Browse files
authored
Update docker-publish.yml - publish released versions for docker image
1 parent 740caaf commit 81934e3

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/docker-publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,37 @@ env:
2020
IMAGE_NAME: jessebot/pixelfed-glitch
2121

2222
jobs:
23+
get-tags:
24+
runs-on: ubuntu-latest
25+
# Map a step output to a job output
26+
outputs:
27+
output1: ${{ steps.pixelfed-glitch-release.outputs.release }}
28+
29+
permissions:
30+
contents: read
31+
packages: write
32+
# This is used to complete the identity challenge
33+
# with sigstore/fulcio when running outside of PRs.
34+
id-token: write
35+
36+
steps:
37+
# this just gets the latest pixelfed-glitch release
38+
- id: pixelfed-glitch-release
39+
name: Get latest pixelfed-glitch/pixelfed release
40+
uses: pozetroninc/github-action-get-latest-release@master
41+
with:
42+
owner: pixelfed-glitch
43+
repo: pixelfed
44+
excludes: prerelease, draft
45+
2346
build:
47+
needs: get-tags
2448
strategy:
2549
matrix:
2650
branch:
2751
- develop
2852
- main
53+
- ${{needs.get-tags.outputs.output1}}
2954
webserver:
3055
- nginx
3156

0 commit comments

Comments
 (0)