-
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -438,6 +438,12 @@ jobs: | |
pattern: 'rhel*' | ||
path: artifact | ||
merge-multiple: true | ||
# docker login is needed for pushing the build image | ||
- uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
# organize SSH deploy key for nagstamon-repo | ||
- run: mkdir ~/.ssh | ||
- run: echo "${{ secrets.NAGSTAMON_REPO_KEY_WEB }}" > ~/.ssh/id_ed25519 | ||
|
@@ -446,6 +452,9 @@ jobs: | |
- run: git clone [email protected]:HenriWahl/nagstamon-jekyll.git | ||
- run: rm -rf ${{ env.repo_dir }}/${{ env.family }}/${{ env.release }} | ||
- run: mkdir -p ${{ env.repo_dir }}/${{ env.family }}/${{ env.release }} | ||
# if image defined by variable cr_image_version is not pullable aka does not exist it will be created and pushed | ||
- run: docker pull ${{ env.cr_image }}-${{ env.family }}-${{ env.version }}:${{ env.cr_image_version }} || /usr/bin/docker build -t ${{ env.cr_image }}-${{ env.family }}-${{ env.version }}:${{ env.cr_image_version }} -f build/docker/Dockerfile-${{ github.job }} . | ||
- run: docker push ${{ env.cr_image }}-${{ env.family }}-${{ env.version }}:${{ env.cr_image_version }} | ||
# copy *.rpm files into nagstamon-jekyll and create repodata | ||
- run: | | ||
version=${{ env.release }} && \ | ||
|