Skip to content

Commit ed0e31a

Browse files
committed
chore: update ci
1 parent 7476f41 commit ed0e31a

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

.github/workflows/backend.yml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Production Build
22
on:
33
push:
4-
branches: [ master ]
4+
branches: [master]
55

66
env:
77
APP_NAME: get_special_hole
@@ -14,36 +14,26 @@ jobs:
1414
working-directory: ./backend
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@master
18-
19-
# - name: Set up Go
20-
# uses: actions/setup-go@master
21-
# with:
22-
# go-version: 1.21.1
23-
#
24-
# - run: go version
25-
# - name: Automated Testing
26-
# env:
27-
# MODE: test
28-
# run: go test -v -count=1 -json -tags release ./tests/...
17+
uses: actions/checkout@v4
2918

3019
- name: Set up QEMU
31-
uses: docker/setup-qemu-action@master
20+
uses: docker/setup-qemu-action@v2
3221

3322
- name: Set up Docker Buildx
34-
uses: docker/setup-buildx-action@master
23+
uses: docker/setup-buildx-action@v2
3524

3625
- name: Login to DockerHub
37-
uses: docker/login-action@master
26+
uses: docker/login-action@v2
3827
with:
3928
username: ${{ secrets.DOCKERHUB_USERNAME }}
4029
password: ${{ secrets.DOCKERHUB_TOKEN }}
4130

4231
- name: Build and push
43-
id: docker_build
44-
uses: docker/build-push-action@master
32+
uses: docker/build-push-action@v4
4533
with:
34+
context: ./backend # Point to the backend directory
35+
file: ./backend/Dockerfile # Explicit path to Dockerfile
4636
push: true
4737
tags: |
4838
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME }}:latest
49-
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME }}:master
39+
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME }}:master

0 commit comments

Comments
 (0)