-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (31 loc) · 1.21 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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/})"
# 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: 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