Skip to content

Commit

Permalink
updated tag ver variables
Browse files Browse the repository at this point in the history
  • Loading branch information
sturrent authored Dec 2, 2019
1 parent 5544efc commit 8de2c90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
- name: Login to Docker Registry
run: echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
- name: Get the version
run: TAG_ID="$(echo ${GITHUB_REF:10})"
run: echo ::set-env name=TAG_ID::$(echo ${GITHUB_REF:10})
- name: Build the tagged Docker image
run: docker build . --file Dockerfile -t sturrent/l200labs:"${{ GITHUB_REF:10 }}"
run: docker build . --file Dockerfile -t sturrent/l200labs:"${{ env.TAG_ID }}"
- name: Push the tagged Docker image
run: docker push sturrent/l200labs:"${{ GITHUB_REF:10 }}"
run: docker push sturrent/l200labs:"${{ env.TAG_ID }}"
- name: Build the latest Docker image
run: docker build . --file Dockerfile --tag sturrent/l200labs:latest
- name: Push the latest Docker image
Expand Down

0 comments on commit 8de2c90

Please sign in to comment.