diff --git a/.github/workflows/azure-static-web-apps-gentle-desert-078448010.yml b/.github/workflows/azure-static-web-apps-gentle-desert-078448010.yml index 1129c22..550d2a5 100644 --- a/.github/workflows/azure-static-web-apps-gentle-desert-078448010.yml +++ b/.github/workflows/azure-static-web-apps-gentle-desert-078448010.yml @@ -5,12 +5,7 @@ env: on: push: - branches: - - main - pull_request: - types: [opened, synchronize, reopened, closed] - branches: - - main + branches: [ main ] jobs: build_and_deploy_job: diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000..fdd7b17 --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,21 @@ +name: Build Latest Docker Image + +defaults: + run: + working-directory: ./apps/server + +on: + pull_request: + types: [opened, synchronize, reopened, closed] + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build the Docker image + run: | + docker build -t synbiosuite/seqimprove-api:latest . diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index af42d63..c92bb0f 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,4 +1,4 @@ -name: Docker Image CI +name: Deploy Docker Image CI defaults: run: @@ -6,9 +6,8 @@ defaults: on: push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] + branches: [ main ] + workflow_dispatch: jobs: build: