Skip to content

Commit

Permalink
make the github actions workflow run for renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
odrling committed May 29, 2024
1 parent 003d116 commit 39c0309
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
push:
branches:
- main
- "renovate/*"
schedule:
# rebuild on mondays
- cron: '0 19 * * 1'
Expand Down Expand Up @@ -68,11 +69,20 @@ jobs:
containerfiles: Containerfile

- name: Push image
id: push-image
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }} ${{ matrix.config.arch }}
tags: ${{ github.sha }}-${{ matrix.config.arch }}
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push arch image
if: github.ref == 'refs/heads/main'
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ matrix.config.arch }}
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -146,11 +156,20 @@ jobs:
containerfiles: Containerfile.cross

- name: Push image
id: push-image
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-cross-image.outputs.image }}
tags: ${{ steps.build-cross-image.outputs.tags }}
tags: cross-${{ github.sha }}
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push cross image
if: github.ref == 'refs/heads/main'
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-cross-image.outputs.image }}
tags: cross
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 39c0309

Please sign in to comment.