Skip to content

Commit 1646e46

Browse files
Remove initial compose test
1 parent d95acd1 commit 1646e46

File tree

1 file changed

+56
-55
lines changed

1 file changed

+56
-55
lines changed

.github/workflows/docker.yml

Lines changed: 56 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -11,51 +11,52 @@ env:
1111
REGISTRY_FRONTEND_IMAGE: ghcr.io/noaa-gsl/dockerspackstackslurmcluster/slurm-frontend
1212
REGISTRY_MASTER_IMAGE: ghcr.io/noaa-gsl/dockerspackstackslurmcluster/slurm-master
1313
REGISTRY_NODE_IMAGE: ghcr.io/noaa-gsl/dockerspackstackslurmcluster/slurm-node
14+
AWS_REGION: us-east-2
1415

1516
jobs:
1617

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
5556

5657
build-frontend-arm64:
5758
runs-on: LinuxARM64-8core-32G-300Gb
58-
needs: docker_compose_test
59+
#needs: docker_compose_test
5960
timeout-minutes: 360
6061
permissions:
6162
packages: write
@@ -92,18 +93,18 @@ jobs:
9293
-
9394
name: Install AWS CLI
9495
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
107108
-
108109
name: Checkout repository
109110
uses: actions/checkout@v4
@@ -145,10 +146,10 @@ jobs:
145146
file: ./frontend/Dockerfile
146147
platforms: linux/arm64
147148
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 }}"
152153
cache-from: type=registry,ref=ghcr.io/noaa-gsl/dockerspackstackslurmcluster/frontend-cache-arm64:cache
153154
cache-to: type=registry,ref=ghcr.io/noaa-gsl/dockerspackstackslurmcluster/frontend-cache-arm64:cache,mode=max
154155
outputs: type=image,name=${{ env.REGISTRY_FRONTEND_IMAGE }},push-by-digest=true,name-canonical=true,push=true

0 commit comments

Comments
 (0)