From cdc82755bb4e6212ec1226ef90b32a58d552fc31 Mon Sep 17 00:00:00 2001 From: Glenn Vriesman Date: Fri, 5 Jun 2020 19:13:02 +0200 Subject: [PATCH] ci/cd: removed seperate docker build Signed-off-by: Glenn Vriesman --- .github/workflows/main.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bc46928..10a0879 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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 }}