diff --git a/.github/workflows/stable-deploy.yml b/.github/workflows/stable-deploy.yml new file mode 100644 index 0000000..63b99f2 --- /dev/null +++ b/.github/workflows/stable-deploy.yml @@ -0,0 +1,26 @@ +name: deployment@stable + +on: + push: + branches: + - stable + +jobs: + + source-code: + runs-on: nccrd.saeon.ac.za + steps: + - uses: actions/checkout@v2 + with: + ref: stable + + deploy: + needs: [source-code] + runs-on: nccrd.saeon.ac.za + steps: + - name: Deploy services + run: >- + NCCRD_API_RESET_SCHEMA=true + SAEON_AUTH_CLIENT_SECRET="${{ secrets.SAEON_AUTH_CLIENT_SECRET}}" + NCCRD_HOSTNAME="https://nccrd.saeon.ac.za" + /usr/local/bin/docker-compose --env-file docker-compose.env up -d --force-recreate --build \ No newline at end of file diff --git a/.github/workflows/stable.yml b/.github/workflows/stable-release.yml similarity index 69% rename from .github/workflows/stable.yml rename to .github/workflows/stable-release.yml index d688b7a..895ad93 100644 --- a/.github/workflows/stable.yml +++ b/.github/workflows/stable-release.yml @@ -2,6 +2,8 @@ name: deployment@stable on: push: + tags: + - '*' branches: - stable @@ -12,18 +14,7 @@ jobs: steps: - uses: actions/checkout@v2 with: - ref: stable - - deploy: - needs: [source-code] - runs-on: nccrd.saeon.ac.za - steps: - - name: Deploy services - run: >- - NCCRD_API_RESET_SCHEMA=true - SAEON_AUTH_CLIENT_SECRET="${{ secrets.SAEON_AUTH_CLIENT_SECRET}}" - NCCRD_HOSTNAME="https://nccrd.saeon.ac.za" - /usr/local/bin/docker-compose --env-file docker-compose.env up -d --force-recreate --build + ref: stable pkg-releases: needs: [source-code]