container #143
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name : container | |
on: | |
# manual only | |
workflow_dispatch: | |
schedule: | |
- cron: "10 1 * * 0" # At 01:10 UTC on each Saturday | |
push: | |
branches: | |
- main | |
paths: | |
- 'toolset/**' | |
pull_request: | |
types: [ closed ] | |
branches: | |
- main | |
paths: | |
- 'toolset/**' | |
jobs: | |
build: | |
runs-on: self-hosted | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Login azure | |
run: | | |
az login -i | |
az account set -s ${{ secrets.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@v2 | |
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 |