Skip to content

Commit

Permalink
Update Deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinPower747 authored Aug 20, 2024
1 parent 6dda5b3 commit fb52519
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,31 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 'Login via Azure CLI'

- name: 'Login to azure'
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_RBAC_CREDENTIALS }}

- name: 'Set up Go'
uses: actions/setup-go@v3
- name: 'Login to private container registry'
uses: Azure/docker-login@v1
with:
go-version: '1.19'
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
login-server: ${{ secrets.REGISTRY_URL }}

- name: 'Setup docker build'
uses: docker/setup-buildx-action@v3

- name: Build
run: make compile ENVIRONMENT=production

- name: 'Deploy to Azure'
uses: Azure/functions-action@v1
- name: 'Build docker image'
uses: docker/[email protected]
with:
app-name: ${{ secrets.AZURE_FUNCTIONAPP_NAME }}
package: ./functions
context: .
file: ./Dockerfile
push: true
tags: latest
build-args: |
GIT_COMMIT=${{GITHUB_SHA}}
GIT_BRANCH=${{GITHUB_REF}}
BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')

0 comments on commit fb52519

Please sign in to comment.