Skip to content

Commit

Permalink
feat: update build-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jirevwe committed Aug 20, 2024
1 parent e2f730c commit 3435042
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,23 @@ jobs:
path: api/ui/build
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

- name: Check out code
uses: actions/checkout@v4

- name: Get and verify dependencies
run: go mod tidy && go mod download && go mod verify

- name: Go vet
run: go vet ./...

- name: Build app to make sure there are zero issues
run: go build -o convoy ./cmd

- name: Get short SHA
id: slug
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
Expand Down Expand Up @@ -84,14 +101,3 @@ jobs:
${{ env.IMAGE_NAME }}:latest-${{ matrix.arch }}
build-args: |
ARCH=${{ matrix.arch }}
# - name: Build and push slim image
# if: matrix.arch == 'slim'
# uses: docker/build-push-action@v2
# with:
# file: ${{ matrix.dockerfile }}
# platforms: ${{ matrix.platform }}
# push: true
# tags: |
# ${{ env.IMAGE_NAME }}:${{ steps.slug.outputs.sha8 }}-slim
# ${{ env.IMAGE_NAME }}:latest-slim

0 comments on commit 3435042

Please sign in to comment.