Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
runs-on: github-hosted-small
name: Build and Deploy Job
steps:
- uses: actions/checkout@v3
Expand All @@ -16,7 +16,7 @@ jobs:
lfs: false
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
uses: Azure/static-web-apps-deploy@1a947af9992250f3bc2e68ad0754c0b0c11566c9 # v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ASHY_SKY_02A7D0403 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
Expand All @@ -32,12 +32,12 @@ jobs:
SKIP_DEPLOY_ON_MISSING_SECRETS: true
close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
runs-on: github-hosted-small
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
uses: Azure/static-web-apps-deploy@1a947af9992250f3bc2e68ad0754c0b0c11566c9 # v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ASHY_SKY_02A7D0403 }}
action: "close"
6 changes: 3 additions & 3 deletions .github/workflows/deploy_proxy_to_ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ permissions:

jobs:
push_to_ghcr:
runs-on: ubuntu-latest
runs-on: github-hosted-small
steps:
- name: Checkout GitHub Action
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/deploy_to_ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ permissions:

jobs:
push_to_ghcr:
runs-on: ubuntu-latest
runs-on: github-hosted-small
steps:
- name: Checkout GitHub Action
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -35,7 +35,7 @@ jobs:
GITHUB_REPO: ${{ github.repository }}

deploy:
runs-on: ubuntu-latest
runs-on: github-hosted-small
needs: push_to_ghcr
environment:
name: 'production'
Expand All @@ -44,7 +44,7 @@ jobs:
steps:
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
uses: azure/webapps-deploy@122b7ec46017e53a3f71e3a027d67550a1641f5e # v2
with:
app-name: 'copilot-metrics-viewer'
slot-name: 'production'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy_to_ghcr_custom_tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ permissions:

jobs:
push_to_ghcr:
runs-on: ubuntu-latest
runs-on: github-hosted-small
steps:
- name: Checkout GitHub Action
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0 # Fetch all history for all tags and branches

- name: Checkout specific tag
run: git checkout tags/v${{ github.event.inputs.tag }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_to_ghcr_tag_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:

jobs:
push_to_ghcr:
runs-on: ubuntu-latest
runs-on: github-hosted-small
steps:
- name: Checkout GitHub Action
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main_copilot-metrics-viewer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:

deploy:
runs-on: ubuntu-latest
runs-on: github-hosted-small
environment:
name: 'production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
Expand Down