Skip to content

Commit

Permalink
Update docker_build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chbrandt authored Oct 31, 2023
1 parent 6e29ebc commit 6b09647
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@ jobs:
name: Checkout
uses: actions/checkout@v4

# - # Add ISIS_OUTPUT_TAG var to env
# name: Workaround to define base-image for ASP
# run: |
# ISIS_OUTPUT_TAG=$(echo "${DOCKER_METADATA_OUTPUT_TAGS}" | head -n1 | cut -d" " -f1)
# echo "ISIS_OUTPUT_TAG=${ISIS_OUTPUT_TAG}" >> "$GITHUB_ENV"

- name: Build image
run: |
docker compose -f compose.build.yml build jupyter-gispy
Expand All @@ -74,7 +68,7 @@ jobs:
- name: Tag image
if: ${{ github.event_name == 'push' }}
env:
USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
USERNAME: ${{ vars.DOCKERHUB_USERNAME }}
run: |
NEW_IMAGE=`docker compose -f compose.build.yml config --images jupyter-gispy`
docker tag $NEW_IMAGE ${USERNAME}/jupyter-gispy:$GITHUB_REF_NAME
Expand All @@ -93,8 +87,9 @@ jobs:

- name: Push image
env:
USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
USERNAME: ${{ vars.DOCKERHUB_USERNAME }}
run: >
docker image ls
| sort "${USERNAME}/jupyter-gispy"
| tail -n+2 | awk '{print $1":"$2}'
| grep "${USERNAME}/jupyter-gispy"
| xargs -I'{}' docker push {}

0 comments on commit 6b09647

Please sign in to comment.