Skip to content

Bump golang.org/x/text from 0.15.0 to 0.16.0 #159

Bump golang.org/x/text from 0.15.0 to 0.16.0

Bump golang.org/x/text from 0.15.0 to 0.16.0 #159

Workflow file for this run

name: Build and deploy on Azure container apps
# When this action will be executed
on:
# Automatically trigger it when detected changes in repo
push:
branches:
[ main ]
# paths:
# - 'webui/**'
pull_request_target:
branches:
[ main ]
# Allow mannually trigger
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout to the branch
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to container registry
uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ secrets.PLATTENTESTS_REGISTRY_USERNAME }}
password: ${{ secrets.PLATTENTESTS_REGISTRY_PASSWORD }}
- name: Build and push container image to registry
uses: docker/build-push-action@v5
with:
push: true
tags: jetzlstorfer/plattentests-web:${{ github.sha }}
file: ./webui/Dockerfile
build-args: GIT_SHA=${{ github.sha }}
context: .
deploy:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: build
steps:
- name: Azure Login
uses: azure/login@v2
with:
creds: ${{ secrets.PLATTENTESTS_AZURE_CREDENTIALS }}
- name: Deploy to containerapp
uses: azure/CLI@v2
with:
inlineScript: |
az config set extension.use_dynamic_install=yes_without_prompt
az containerapp registry set -n plattentests -g aca-plattentests --server docker.io --username ${{ secrets.PLATTENTESTS_REGISTRY_USERNAME }} --password ${{ secrets.PLATTENTESTS_REGISTRY_PASSWORD }}
az containerapp update -n plattentests -g aca-plattentests --image jetzlstorfer/plattentests-web:${{ github.sha }}