Skip to content

Commit

Permalink
Testing value of tags
Browse files Browse the repository at this point in the history
  • Loading branch information
chbrandt committed Oct 24, 2023
1 parent 493bc28 commit 4ed72ae
Showing 1 changed file with 82 additions and 14 deletions.
96 changes: 82 additions & 14 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,86 @@ jobs:
# dockerfile_path: ./dockerfiles/gispy.dockerfile
# secrets: inherit

# isis:
# uses: ./.github/workflows/workflow_build.yml
# with:
# image_name: ${{ vars.DOCKERHUB_USERNAME }}/jupyter-isis
# context_path: ./dockerfiles
# dockerfile_path: ./dockerfiles/isis.dockerfile
# secrets: inherit

isis:
uses: ./.github/workflows/workflow_build.yml
with:
image_name: ${{ vars.DOCKERHUB_USERNAME }}/jupyter-isis
context_path: ./dockerfiles
dockerfile_path: ./dockerfiles/isis.dockerfile
secrets: inherit

isis-asp:
uses: ./.github/workflows/workflow_build.yml
with:
image_name: ${{ vars.DOCKERHUB_USERNAME }}/jupyter-isis-asp
context_path: ./dockerfiles
dockerfile_path: ./dockerfiles/isis.dockerfile
secrets: inherit
runs-on: ubuntu-latest

steps:

- # https://github.com/marketplace/actions/checkout
name: Checkout
uses: actions/checkout@v4

- # https://github.com/marketplace/actions/docker-metadata-action
name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
${{ vars.DOCKERHUB_USERNAME }}/jupyter-isis
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=tag
type=ref,event=branch
# type=ref,event=branch,enable=${{ github.ref != format('refs/heads/{0}', 'master') }}
# type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'stable') }}
# type=sha

# - # https://github.com/marketplace/actions/docker-setup-qemu
# name: Set up QEMU
# uses: docker/setup-qemu-action@v3

# - # https://github.com/marketplace/actions/docker-setup-buildx
# name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3

# - # https://github.com/marketplace/actions/docker-login
# name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

# - # https://github.com/marketplace/actions/build-and-push-docker-images
# name: Build, push and export
# uses: docker/build-push-action@v5
# with:
# context: ./dockerfiles
# file: ./dockerfiles/isis.dockerfile
# push: ${{ github.event_name == 'push' }}
# tags: ${{ steps.meta.outputs.tags }}
# # outputs: type=docker,dest=/tmp/isis_image.tar

# - # https://docs.docker.com/build/ci/github-actions/share-image-jobs/
# name: Upload artifact
# uses: actions/upload-artifact@v3
# with:
# name: isis_image
# path: /tmp/isis_image.tar

-
name: Build ISIS+ASP
run: echo ${{ steps.meta.outputs.tags }}


# isis-asp:
# needs: isis
# runs-on: ubuntu-latest
# steps:
# -
# name:
# uses: ./.github/workflows/workflow_build.yml
# with:
# base_image_name: ${{ vars.DOCKERHUB_USERNAME }}/jupyter-isis
# image_name: ${{ vars.DOCKERHUB_USERNAME }}/jupyter-isis-asp
# context_path: ./dockerfiles
# dockerfile_path: ./dockerfiles/isis.dockerfile
# secrets: inherit

0 comments on commit 4ed72ae

Please sign in to comment.