Skip to content

Commit

Permalink
feat: Update GitHub Actions workflow to specify Docker context and fi…
Browse files Browse the repository at this point in the history
…le path for container build
  • Loading branch information
tuke307 committed Nov 12, 2024
1 parent f2e54bf commit e4b7353
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main_api-paddockmonitoring-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
path: paddock-api

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -29,9 +31,10 @@ jobs:
- name: Build and push container image to registry
uses: docker/build-push-action@v3
with:
context: paddock-api
push: true
tags: tonylukeregistry.azurecr.io/${{ secrets.AzureAppService_ContainerUsername_89b73bd5f3e642038ccb25623ee46ad7 }}/tonylukeregistry/paddock-monitoring/api:${{ github.sha }}
file: ./Dockerfile
file: paddock-api/Dockerfile

deploy:
runs-on: ubuntu-latest
Expand All @@ -48,4 +51,4 @@ jobs:
app-name: 'api-paddockmonitoring-prod'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_f350b57bb010426ab3e50fb32971c19d }}
images: 'tonylukeregistry.azurecr.io/${{ secrets.AzureAppService_ContainerUsername_89b73bd5f3e642038ccb25623ee46ad7 }}/tonylukeregistry/paddock-monitoring/api:${{ github.sha }}'
images: 'tonylukeregistry.azurecr.io/${{ secrets.AzureAppService_ContainerUsername_89b73bd5f3e642038ccb25623ee46ad7 }}/tonylukeregistry/paddock-monitoring/api:${{ github.sha }}'

0 comments on commit e4b7353

Please sign in to comment.