Skip to content

Commit

Permalink
build image
Browse files Browse the repository at this point in the history
  • Loading branch information
srliao committed Apr 11, 2024
1 parent c578bcf commit d45167a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ jobs:
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ghcr.io/${{ github.repository }}
- name: Build go executable
working-directory: ./cmd/preview
run: GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build .
- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
working-directory: ./cmd/preview
with:
context: .
context: ./cmd/preview/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit d45167a

Please sign in to comment.