Skip to content

Commit

Permalink
Updated docker build tag
Browse files Browse the repository at this point in the history
  • Loading branch information
sturrent authored Dec 2, 2019
1 parent 890bbed commit 96f20c5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: build-and-push

on:
release:
Expand All @@ -23,12 +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
id: vars
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:10})
run: TAG_ID="$(echo ${GITHUB_REF:10})"
- name: Build the tagged Docker image
run: docker build . --file Dockerfile --tag sturrent/l200labs:$
run: docker build . --file Dockerfile --tag sturrent/l200labs:${TAG_ID}
- name: Push the tagged Docker image
run: docker push sturrent/l200labs:$
run: docker push sturrent/l200labs:${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 96f20c5

Please sign in to comment.