Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dungngminh committed May 1, 2024
1 parent a0e5ad2 commit d2c6f5a
Showing 1 changed file with 4 additions and 27 deletions.
31 changes: 4 additions & 27 deletions .github/workflows/build_and_push_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
paths:
- backend/**

defaults:
run:
working-directory: /backend

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -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

0 comments on commit d2c6f5a

Please sign in to comment.