File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -379,13 +379,22 @@ jobs:
379
379
pattern : ' fedora*'
380
380
path : artifact
381
381
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 }}
382
388
# organize SSH deploy key for nagstamon-repo
383
389
- run : mkdir ~/.ssh
384
390
- run : echo "${{ secrets.NAGSTAMON_REPO_KEY_WEB }}" > ~/.ssh/id_ed25519
385
391
- run : chmod -R go-rwx ~/.ssh
386
392
# get and prepare nagstamon-jekyll
387
393
-
run :
git clone [email protected] :HenriWahl/nagstamon-jekyll.git
388
394
- 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 }}
389
398
# copy *.rpm files into nagstamon-jekyll and create repodata
390
399
- run : |
391
400
for noarch_rpm in artifact/*${{ env.family }}*.noarch.rpm; \
You can’t perform that action at this time.
0 commit comments