From 80d5161e1f9c94c3572c3345c8b57abe7bd98999 Mon Sep 17 00:00:00 2001 From: Thibault Jamet Date: Sun, 8 Mar 2020 16:30:42 +0100 Subject: [PATCH] Add an option to re-build all the images (#76) --- .github/workflows/push.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index eb05963..d14803c 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -4,6 +4,7 @@ on: # rebuild any PRs and main branch changes push: branches: - 'master' + - 're-builld-all' jobs: test-docker-build: @@ -80,10 +81,10 @@ 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 @@ -91,4 +92,4 @@ jobs: 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' \ No newline at end of file + if: github.event_name == 'push' && ( steps.is-modified.outputs.modified == 'true' || github.event.ref == 'refs/heads/re-builld-all') \ No newline at end of file