Skip to content

Commit

Permalink
ci/cd: removed seperate docker build
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Vriesman <[email protected]>
  • Loading branch information
glvr182 committed Jun 5, 2020
1 parent 04b69f8 commit cdc8275
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:
go-version: ^1.14
id: go

- name: Set env
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}

- name: Get dependencies
run: |
go mod tidy
Expand All @@ -39,10 +36,7 @@ jobs:
- name: Build
run: go build -v .

- name: Docker build
run: docker build -t ${GITHUB_REPOSITORY}:latest -t ${GITHUB_REPOSITORY}:${{ env.RELEASE_VERSION }} .

- name: Docker push
- name: Docker
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
Expand Down

0 comments on commit cdc8275

Please sign in to comment.