Skip to content

Commit

Permalink
Update main_copilot-metrics-viewer.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
martedesco authored Aug 15, 2024
1 parent 1d02c9c commit a1ad141
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions .github/workflows/main_copilot-metrics-viewer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,9 @@ on:
workflow_dispatch:

jobs:
build:
runs-on: 'ubuntu-latest'

steps:
- uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to registry
uses: docker/login-action@v2
with:
registry: https://ghcr.io//
username: ${{ secrets.AzureAppService_ContainerUsername_6e6399ab4c2848209c95dce8fff002f0 }}
password: ${{ secrets.AzureAppService_ContainerPassword_0a4b5ca6cf4a4842bf7a558916b72d62 }}

- name: Build and push container image to registry
uses: docker/build-push-action@v3
with:
push: true
tags: ghcr.io//${{ secrets.AzureAppService_ContainerUsername_6e6399ab4c2848209c95dce8fff002f0 }}/github-copilot-resources/copilot-metrics-viewer:${{ github.sha }}
file: ./Dockerfile

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
Expand All @@ -48,4 +25,4 @@ jobs:
app-name: 'copilot-metrics-viewer'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_e94dfd38811a421eafe5ce4eee13b68b }}
images: 'ghcr.io//${{ secrets.AzureAppService_ContainerUsername_6e6399ab4c2848209c95dce8fff002f0 }}/github-copilot-resources/copilot-metrics-viewer:${{ github.sha }}'
images: 'ghcr.io//${{ secrets.AzureAppService_ContainerUsername_6e6399ab4c2848209c95dce8fff002f0 }}/github-copilot-resources/copilot-metrics-viewer:${{ github.sha }}'

0 comments on commit a1ad141

Please sign in to comment.