Skip to content

Commit

Permalink
[GH-38] Configure when docker images are updated for identity. (#39)
Browse files Browse the repository at this point in the history
* change the method by which we get the latest images (change from prior commit)
  • Loading branch information
goulter authored Jan 29, 2024
1 parent 5d4504c commit 460a776
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/poetry-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,27 @@ jobs:
poetry update --lock
id: poetry-update
- run: |
docker build -f images/poetry/Dockerfile -t ${{ env.dest_image }} images/poetry
docker build -f images/poetry/Dockerfile -t ${{ env.dest_image }} -t ${{ env.latest_image }} images/poetry
docker push ${{ env.dest_image }}
docker push ${{ env.latest_image }}
echo ::notice::Pushed ${{ env.dest_image }}
env:
dest_image: ghcr.io/uwit-iam/poetry:${{ steps.configure.outputs.build-id }}
latest_image: ghcr.io/uwit-iam/poetry:latest
name: Re-build poetry base image
- run: |
set -x
docker build -f images/uw-saml-poetry/Dockerfile \
--build-arg from_base_tag=${{ env.build_id }} \
-t ${{ env.dest_image }} images/uw-saml-poetry
-t ${{ env.dest_image }} -t ${{ env.latest_image }} images/uw-saml-poetry
docker push ${{ env.dest_image }}
docker push ${{ env.latest_image }}
echo ::notice::Pushed ${{ env.dest_image }}
name: Re-build uw-saml-poetry image
env:
build_id: ${{ steps.configure.outputs.build-id }}
dest_image: ghcr.io/uwit-iam/uw-saml-poetry:${{ steps.configure.outputs.build-id }}
latest_image: ghcr.io/uwit-iam/uw-saml-poetry:latest
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
Expand Down

0 comments on commit 460a776

Please sign in to comment.