-
Notifications
You must be signed in to change notification settings - Fork 15
49 lines (39 loc) · 1.44 KB
/
docker_ansyslab_linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Upload Linux latest to Ansys Lab
on:
workflow_dispatch:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
packages: read
env:
LINUX_STABLE_GHCR: ghcr.io/ansys/geometry:linux-latest
LINUX_STABLE_FUJI: azwepsifujiaksacr.azurecr.io/ansys/discovery/geometry:linux-latest
jobs:
linux-ansyslab:
name: Publish Linux latest image on AnsysLab
runs-on:
group: ansys-network
labels: [Linux, pygeometry]
steps:
- name: Login in Github Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pull Linux latest stable container
run: docker pull ${{ env.LINUX_STABLE_GHCR }}
- name: Login in AnsysLab registry
uses: docker/login-action@v3
with:
registry: azwepsifujiaksacr.azurecr.io
username: ${{ secrets.FUJI_USER }}
password: ${{ secrets.FUJI_TOKEN }}
- name: Tag container as latest (stable) for AnsysLab registry
run: docker tag ${{ env.LINUX_STABLE_GHCR }} ${{ env.LINUX_STABLE_FUJI }}
- name: Publish latest stable container in AnsysLab registry
run: docker push ${{ env.LINUX_STABLE_FUJI }}
- name: Remove images (free space)
run: docker image rm ${{ env.LINUX_STABLE_FUJI }} ${{ env.LINUX_STABLE_GHCR }}