|
11 | 11 | REGISTRY_FRONTEND_IMAGE: ghcr.io/noaa-gsl/dockerspackstackslurmcluster/slurm-frontend
|
12 | 12 | REGISTRY_MASTER_IMAGE: ghcr.io/noaa-gsl/dockerspackstackslurmcluster/slurm-master
|
13 | 13 | REGISTRY_NODE_IMAGE: ghcr.io/noaa-gsl/dockerspackstackslurmcluster/slurm-node
|
| 14 | + AWS_REGION: us-east-2 |
14 | 15 |
|
15 | 16 | jobs:
|
16 | 17 |
|
17 |
| - docker_compose_test: |
18 |
| - name: Docker Compose Test |
19 |
| - runs-on: ubuntu2204-8c-32g-300ssd |
20 |
| - |
21 |
| - steps: |
22 |
| - - |
23 |
| - name: Checkout Repository |
24 |
| - uses: actions/checkout@v4 |
25 |
| - - |
26 |
| - name: Build and start containers |
27 |
| - run: docker compose -f docker-compose.yml up --build -d |
28 |
| - |
29 |
| - - |
30 |
| - name: Check cluster logs |
31 |
| - run: docker compose -f docker-compose.yml logs |
32 |
| - |
33 |
| - - |
34 |
| - name: Check status of the cluster containers |
35 |
| - run: docker compose -f docker-compose.yml ps |
36 |
| - |
37 |
| - - |
38 |
| - name: Check status of Slurm |
39 |
| - run: docker exec slurm-frontend sinfo |
40 |
| - |
41 |
| - - |
42 |
| - name: Run a Slurm job |
43 |
| - run: docker exec slurm-frontend srun hostname |
44 |
| - |
45 |
| - - |
46 |
| - name: Test ssh access to Slurm compute nodes |
47 |
| - run: | |
48 |
| - docker exec slurm-frontend timeout 1s ssh slurmnode1 hostname |
49 |
| - docker exec slurm-frontend timeout 1s ssh slurmnode2 hostname |
50 |
| - docker exec slurm-frontend timeout 1s ssh slurmnode3 hostname |
51 |
| -
|
52 |
| - - |
53 |
| - name: Shut down Slurm cluster containers |
54 |
| - run: docker compose -f docker-compose.yml down |
| 18 | + #docker_compose_test: |
| 19 | + # name: Docker Compose Test |
| 20 | + # runs-on: ubuntu2204-8c-32g-300ssd |
| 21 | + # |
| 22 | + # steps: |
| 23 | + # - |
| 24 | + # name: Checkout Repository |
| 25 | + # uses: actions/checkout@v4 |
| 26 | + # - |
| 27 | + # name: Build and start containers |
| 28 | + # run: docker compose -f docker-compose.yml up --build -d |
| 29 | + # |
| 30 | + # - |
| 31 | + # name: Check cluster logs |
| 32 | + # run: docker compose -f docker-compose.yml logs |
| 33 | + # |
| 34 | + # - |
| 35 | + # name: Check status of the cluster containers |
| 36 | + # run: docker compose -f docker-compose.yml ps |
| 37 | + # |
| 38 | + # - |
| 39 | + # name: Check status of Slurm |
| 40 | + # run: docker exec slurm-frontend sinfo |
| 41 | + # |
| 42 | + # - |
| 43 | + # name: Run a Slurm job |
| 44 | + # run: docker exec slurm-frontend srun hostname |
| 45 | + # |
| 46 | + # - |
| 47 | + # name: Test ssh access to Slurm compute nodes |
| 48 | + # run: | |
| 49 | + # docker exec slurm-frontend timeout 1s ssh slurmnode1 hostname |
| 50 | + # docker exec slurm-frontend timeout 1s ssh slurmnode2 hostname |
| 51 | + # docker exec slurm-frontend timeout 1s ssh slurmnode3 hostname |
| 52 | + # |
| 53 | + # - |
| 54 | + # name: Shut down Slurm cluster containers |
| 55 | + # run: docker compose -f docker-compose.yml down |
55 | 56 |
|
56 | 57 | build-frontend-arm64:
|
57 | 58 | runs-on: LinuxARM64-8core-32G-300Gb
|
58 |
| - needs: docker_compose_test |
| 59 | + #needs: docker_compose_test |
59 | 60 | timeout-minutes: 360
|
60 | 61 | permissions:
|
61 | 62 | packages: write
|
@@ -92,18 +93,18 @@ jobs:
|
92 | 93 | -
|
93 | 94 | name: Install AWS CLI
|
94 | 95 | run: sudo apt install -y awscli
|
95 |
| - #- |
96 |
| - # name: Configure AWS credentials |
97 |
| - # uses: aws-actions/configure-aws-credentials@v4 |
98 |
| - # with: |
99 |
| - # aws-region: ${{ env.AWS_REGION }} |
100 |
| - # role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_GITHUB_ROLE }} |
101 |
| - # role-duration-seconds: 21600 # 6 hours |
102 |
| - # role-session-name: chiltepin-github-actions |
103 |
| - #- |
104 |
| - # name: Test authentication |
105 |
| - # run: | |
106 |
| - # aws sts get-caller-identity |
| 96 | + - |
| 97 | + name: Configure AWS credentials |
| 98 | + uses: aws-actions/configure-aws-credentials@v4 |
| 99 | + with: |
| 100 | + aws-region: ${{ env.AWS_REGION }} |
| 101 | + role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_GITHUB_ROLE }} |
| 102 | + role-duration-seconds: 21600 # 6 hours |
| 103 | + role-session-name: chiltepin-github-actions |
| 104 | + - |
| 105 | + name: Test authentication |
| 106 | + run: | |
| 107 | + aws sts get-caller-identity |
107 | 108 | -
|
108 | 109 | name: Checkout repository
|
109 | 110 | uses: actions/checkout@v4
|
@@ -145,10 +146,10 @@ jobs:
|
145 | 146 | file: ./frontend/Dockerfile
|
146 | 147 | platforms: linux/arm64
|
147 | 148 | labels: ${{ steps.meta.outputs.labels }}
|
148 |
| - #secrets: | |
149 |
| - # "access_key_id=${{ env.AWS_ACCESS_KEY_ID }}" |
150 |
| - # "secret_access_key=${{ env.AWS_SECRET_ACCESS_KEY }}" |
151 |
| - # "session_token=${{ env.AWS_SESSION_TOKEN }}" |
| 149 | + secrets: | |
| 150 | + "access_key_id=${{ env.AWS_ACCESS_KEY_ID }}" |
| 151 | + "secret_access_key=${{ env.AWS_SECRET_ACCESS_KEY }}" |
| 152 | + "session_token=${{ env.AWS_SESSION_TOKEN }}" |
152 | 153 | cache-from: type=registry,ref=ghcr.io/noaa-gsl/dockerspackstackslurmcluster/frontend-cache-arm64:cache
|
153 | 154 | cache-to: type=registry,ref=ghcr.io/noaa-gsl/dockerspackstackslurmcluster/frontend-cache-arm64:cache,mode=max
|
154 | 155 | outputs: type=image,name=${{ env.REGISTRY_FRONTEND_IMAGE }},push-by-digest=true,name-canonical=true,push=true
|
|
0 commit comments