Skip to content

Commit

Permalink
full automation
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpricethesecond committed Jul 11, 2024
1 parent 24e9fd2 commit eaf32ec
Showing 1 changed file with 11 additions and 23 deletions.
34 changes: 11 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,21 @@ jobs:
runs-on: ubuntu-latest

steps:

# - name: Extract branch name
# shell: bash
# # run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
# run: echo "{name}={branch}" >> $GITHUB_OUTPUT
# id: extract_branch

- name: Debug release name
shell: bash
run: echo ${{ github.ref_name }}

# - name: Checkout
# uses: actions/checkout@v3
- 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: 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: Build the Docker image
run: docker build . --file Dockerfile --tag tapis/globus-proxy:${{ github.ref_name }}

# - name: Push the image to dockerhub
# run: docker push --all-tags tapis/globus-proxy
- name: Push the image to dockerhub
run: docker push --all-tags tapis/globus-proxy

0 comments on commit eaf32ec

Please sign in to comment.