Skip to content

Commit db2f65f

Browse files
authored
fix: ci (#76)
1 parent a0e5ad2 commit db2f65f

File tree

1 file changed

+4
-27
lines changed

1 file changed

+4
-27
lines changed

.github/workflows/build_and_push_backend.yml

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
paths:
1313
- backend/**
1414

15+
defaults:
16+
run:
17+
working-directory: /backend
18+
1519
jobs:
1620
deploy:
1721
runs-on: ubuntu-latest
@@ -31,30 +35,3 @@ jobs:
3135

3236
- name: Change Directory to build folder
3337
run: cd build/
34-
35-
# - name: Overwrite file
36-
# uses: "DamianReeves/write-file-action@master"
37-
# with:
38-
# path: nixpacks.toml
39-
# write-mode: overwrite
40-
# contents: |
41-
# [phases.setup]
42-
# nixpkgsArchive = 'bc901a14315f03cb02d5be6d7e4c8075cd0fe36c'
43-
44-
- name: Set up QEMU
45-
uses: docker/setup-qemu-action@v2
46-
- name: Set up Docker Buildx
47-
uses: docker/setup-buildx-action@v2
48-
49-
- name: Login to Docker Hub
50-
uses: docker/login-action@v2
51-
with:
52-
username: ${{ secrets.DOCKER_USERNAME }}
53-
password: ${{ secrets.DOCKER_TOKEN }}
54-
55-
- name: Build and push
56-
uses: docker/build-push-action@v4
57-
with:
58-
context: build/
59-
push: true
60-
tags: dungngminh/server:latest

0 commit comments

Comments
 (0)