Skip to content

container

container #95

Workflow file for this run

name : container
on:
# manual only
workflow_dispatch:
push:
branches:
- main
paths:
- 'toolset/**'
pull_request:
types: [ closed ]
branches:
- main
paths:
- 'toolset/**'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Login azure
run: |
source /miniconda/bin/activate
az login --service-principal -u '${{ env.ARM_CLIENT_ID }}' -p '${{ env.ARM_CLIENT_SECRET }}' --tenant '${{ env.ARM_TENANT_ID }}'
az account set -s ${{ env.ARM_SUBSCRIPTION_ID }}
echo "local user: $(whoami)"
# - name: 'Login via Azure CLI'
# uses: azure/login@v1
# with:
# creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: 'ACR Login'
uses: azure/docker-login@v1
with:
login-server: azhop.azurecr.io
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build the HPC Rover
run: |
./toolset/build_container.sh github azhop.azurecr.io