Skip to content

Commit

Permalink
Add an option to re-build all the images (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjamet authored Mar 8, 2020
1 parent 0bb0c46 commit 80d5161
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: # rebuild any PRs and main branch changes
push:
branches:
- 'master'
- 're-builld-all'

jobs:
test-docker-build:
Expand Down Expand Up @@ -80,15 +81,15 @@ jobs:
with:
pattern: ${{ matrix.image }}/**
- uses: actions/checkout@v1
if: steps.is-modified.outputs.modified == 'true'
if: steps.is-modified.outputs.modified == 'true' || (github.event_name == 'push' && github.event.ref == 'refs/heads/re-builld-all')
- run: |
docker build -t ${{ matrix.image }} ${{ matrix.image }}
if: steps.is-modified.outputs.modified == 'true'
if: steps.is-modified.outputs.modified == 'true' || (github.event_name == 'push' && github.event.ref == 'refs/heads/re-builld-all')
- run: |
echo ${{ secrets.DOCKER_HUB_PASSWORD }} | base64 -d | docker login --password-stdin -u whalebrewci
echo ${{ github.token }} | docker login --password-stdin -u ${{ github.actor }} docker.pkg.github.com
docker tag ${{ matrix.image }} ${{ github.event.repository.owner.name}}/${{ matrix.image }}
docker tag ${{ matrix.image }} docker.pkg.github.com/${{ github.event.repository.owner.name }}/${{ github.event.repository.name }}/${{ matrix.image }}
docker push ${{ github.event.repository.owner.name}}/${{ matrix.image }}
docker push docker.pkg.github.com/${{ github.event.repository.owner.name}}/${{ github.event.repository.name }}/${{ matrix.image }}
if: github.event_name == 'push' && steps.is-modified.outputs.modified == 'true'
if: github.event_name == 'push' && ( steps.is-modified.outputs.modified == 'true' || github.event.ref == 'refs/heads/re-builld-all')

0 comments on commit 80d5161

Please sign in to comment.