From 1d46ef6e79c98b35b02fb84da893536bd8157819 Mon Sep 17 00:00:00 2001 From: kevinpricethesecond Date: Thu, 11 Jul 2024 08:53:27 -0500 Subject: [PATCH] initial testing --- .github/workflows/release.yml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7c0dddd --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,42 @@ +name: Docker Image CI + +on: + release: + types: [published] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + + - name: Extract branch name + shell: bash + run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" + id: extract_branch + + - name: Debug release name + shell: bash + run: echo ${{ steps.extract_branch.outputs.branch }} + + # - name: Checkout + # uses: actions/checkout@v3 + + # - name: Login to Docker Hub + # uses: docker/login-action@v1 + # with: + # username: ${{ secrets.DOCKER_HUB_USERNAME }} + # password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + + # - name: Build the Docker image + # run: docker build . --file Dockerfile --tag tapis/globus-proxy:${{ steps.extract_branch.outputs.branch }} + + # # if tag == prod release, tag as latest + # - name: Build the Docker image with latest tag + # if: ${{ steps.extract_branch.outputs.branch == 'prod' }} + # run: docker build . --file Dockerfile --tag tapis/globus-proxy:latest --tag tapis/globus-proxy:1.3.0 + + # - name: Push the image to dockerhub + # run: docker push --all-tags tapis/globus-proxy