From e790cb50ae8e0e100101829f94fff9df45acf756 Mon Sep 17 00:00:00 2001 From: hetjagani Date: Sat, 31 Jul 2021 10:19:02 -0700 Subject: [PATCH] ci: added step to build and publish kavach web --- .github/workflows/goreleaser.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index e266956c..30821f18 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -9,6 +9,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - name: Set env + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: Use Go uses: actions/setup-go@v2 id: setup_go @@ -21,6 +23,13 @@ jobs: key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - name: Login Docker Hub run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u deshetti --password-stdin + - name: Build and push kavach web + uses: docker/build-push-action@v2 + with: + push: true + tags: factly/kavach-web:${{ env.RELEASE_VERSION }} + context: web + file: web/Dockerfile.prod - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: