From 2196b961143894f83cc735997611f09e7f2db3cc Mon Sep 17 00:00:00 2001 From: Aram Date: Fri, 15 Nov 2024 04:14:52 +0400 Subject: [PATCH] Remove api.yml and update production.yml workflow --- .github/workflows/api.yml | 43 -------------------------------- .github/workflows/production.yml | 17 +++++++------ 2 files changed, 10 insertions(+), 50 deletions(-) delete mode 100644 .github/workflows/api.yml diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml deleted file mode 100644 index 42d8e47..0000000 --- a/.github/workflows/api.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Api - -on: - push: - branches: [ "master" ] - paths: - - 'src/Argon.Api/**' - - 'src/Argon.Contracts/**' - - 'src/ServiceDefaults/**' - pull_request: - branches: [ "master" ] - paths: - - 'src/Argon.Api/**' - - 'src/Argon.Contracts/**' - - 'src/ServiceDefaults/**' - workflow_dispatch: - -jobs: - qa: - uses: ./.github/workflows/tests.yml - build: - needs: [ qa ] - if: github.ref == 'refs/heads/master' - runs-on: ARM64 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - submodules: 'recursive' - token: ${{ secrets.GITHUB_TOKEN }} - - name: Log in to GitHub Docker Registry - uses: docker/login-action@v1 - with: - registry: ${{ secrets.REGISTRY }} - username: ${{ secrets.CR_USER }} - password: ${{ secrets.CR_PWD }} - - name: Build and push - uses: docker/build-push-action@v2 - with: - context: . - file: ./src/Argon.Api/Dockerfile - push: true - tags: reg.staging.svck.dev/argon/api-orleans:${{ github.run_number }} \ No newline at end of file diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index b862a23..bc1c678 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -4,15 +4,11 @@ on: push: branches: [ "master" ] paths: - - 'src/Argon.Api/**' - - 'src/Argon.Contracts/**' - - 'src/ServiceDefaults/**' + - 'src/**/** pull_request: branches: [ "master" ] paths: - - 'src/Argon.Api/**' - - 'src/Argon.Contracts/**' - - 'src/ServiceDefaults/**' + - 'src/**/** workflow_dispatch: jobs: @@ -34,10 +30,17 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.ARGON_GHCR_PAT }} - - name: Build and push + - name: Build and push api uses: docker/build-push-action@v2 with: context: . file: ./src/Argon.Api/Dockerfile push: true tags: ghcr.io/argon-chat/orleans:${{ github.run_number }} + - name: Build and push contracts + uses: docker/build-push-action@v2 + with: + context: . + file: ./src/Argon.Entry/Dockerfile + push: true + tags: ghcr.io/argon-chat/entry:${{ github.run_number }}