diff --git a/.github/workflows/build_and_push_backend.yml b/.github/workflows/build_and_push_backend.yml index a882279..0450052 100644 --- a/.github/workflows/build_and_push_backend.yml +++ b/.github/workflows/build_and_push_backend.yml @@ -12,6 +12,10 @@ on: paths: - backend/** +defaults: + run: + working-directory: /backend + jobs: deploy: runs-on: ubuntu-latest @@ -31,30 +35,3 @@ jobs: - name: Change Directory to build folder run: cd build/ - - # - name: Overwrite file - # uses: "DamianReeves/write-file-action@master" - # with: - # path: nixpacks.toml - # write-mode: overwrite - # contents: | - # [phases.setup] - # nixpkgsArchive = 'bc901a14315f03cb02d5be6d7e4c8075cd0fe36c' - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v4 - with: - context: build/ - push: true - tags: dungngminh/server:latest