Skip to content

Commit 3a30b78

Browse files
louibpranavjain97
authored andcommitted
feat: add docker build job
1 parent 68b5c0b commit 3a30b78

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/pull_request.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,27 @@ jobs:
1717
uses: ./.github/workflows/build-and-test.yaml
1818
secrets:
1919
fossa-api-key: ${{ secrets.FOSSA_API_KEY }}
20+
21+
build-docker-image:
22+
name: Build the Docker Image
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v3
30+
31+
- name: Build and push Docker image
32+
uses: docker/build-push-action@v6
33+
with:
34+
context: .
35+
push: false
36+
tags: |
37+
ghcr.io/bitgo/advanced-wallets:${{ github.sha }}
38+
build-args: |
39+
BUILD_VERSION=${{ github.sha }}
40+
BUILD_DATE=${{ github.event.repository.updated_at }}
41+
VCS_REF=${{ github.sha }}
42+
cache-from: type=gha
43+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)