Skip to content

Commit 339b746

Browse files
committed
use depot for test builds
1 parent 1428fe2 commit 339b746

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

.github/workflows/backend_test.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,18 @@ jobs:
2222
uses: actions/checkout@v4
2323

2424
- name: Test that the docker image still builds successfully
25-
run: |
26-
export COMMIT_SHA=$(git rev-parse --short HEAD)
27-
docker build -t testingbuild:latest --build-arg COMMIT_SHA=${COMMIT_SHA} . -f Dockerfile_backend
25+
uses: depot/setup-action@v1
26+
27+
- name: Build Docker image with Depot
28+
uses: depot/build-push-action@v1
29+
with:
30+
project: f11hp4hlmg
31+
token: ${{ secrets.DEPOT_TOKEN }}
32+
context: .
33+
file: ./Dockerfile_backend
34+
push: false
35+
build-args: |
36+
COMMIT_SHA=${{ github.sha }}
2837
2938
- name: Deps
3039
run: go get -v ./...

.github/workflows/ee_backend_test.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,18 @@ jobs:
2222
uses: actions/checkout@v4
2323

2424
- name: Test that the docker image still builds successfully
25-
run: |
26-
export COMMIT_SHA=$(git rev-parse --short HEAD)
27-
docker build -t testingbuild:latest --build-arg COMMIT_SHA=${COMMIT_SHA} . -f Dockerfile_backend
25+
uses: depot/setup-action@v1
26+
27+
- name: Build Docker image with Depot
28+
uses: depot/build-push-action@v1
29+
with:
30+
project: kcld4zgwzx
31+
token: ${{ secrets.DEPOT_TOKEN }}
32+
context: .
33+
file: ./Dockerfile_backend_ee
34+
push: false
35+
build-args: |
36+
COMMIT_SHA=${{ github.sha }}
2837
2938
- name: Deps
3039
run: go get -v ./...

0 commit comments

Comments
 (0)