Skip to content

Commit e8964e5

Browse files
committed
Merge branch 'fixes_3_16_0' into 3.16.x
# Conflicts: # .github/workflows/build-release-latest.yml
2 parents 898daa5 + 4a53e98 commit e8964e5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build-release-stable.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,13 +379,22 @@ jobs:
379379
pattern: 'fedora*'
380380
path: artifact
381381
merge-multiple: true
382+
# docker login is needed for pushing the build image
383+
- uses: docker/login-action@v3
384+
with:
385+
registry: ghcr.io
386+
username: ${{ github.actor }}
387+
password: ${{ secrets.GITHUB_TOKEN }}
382388
# organize SSH deploy key for nagstamon-repo
383389
- run: mkdir ~/.ssh
384390
- run: echo "${{ secrets.NAGSTAMON_REPO_KEY_WEB }}" > ~/.ssh/id_ed25519
385391
- run: chmod -R go-rwx ~/.ssh
386392
# get and prepare nagstamon-jekyll
387393
- run: git clone [email protected]:HenriWahl/nagstamon-jekyll.git
388394
- run: rm -rf ${{ env.repo_dir }}/${{ env.family }}/??
395+
# if image defined by variable cr_image_version is not pullable aka does not exist it will be created and pushed
396+
- run: docker pull ${{ env.cr_image }}-${{ env.family }}-${{ env.cr_image_latest }}:${{ env.cr_image_version }} || /usr/bin/docker build -t ${{ env.cr_image }}-${{ env.family }}-${{ env.cr_image_latest }}:${{ env.cr_image_version }} -f build/docker/Dockerfile-${{ github.job }} .
397+
- run: docker push ${{ env.cr_image }}-${{ env.family }}-${{ env.cr_image_latest }}:${{ env.cr_image_version }}
389398
# copy *.rpm files into nagstamon-jekyll and create repodata
390399
- run: |
391400
for noarch_rpm in artifact/*${{ env.family }}*.noarch.rpm; \

0 commit comments

Comments
 (0)