Skip to content

Commit 5864fde

Browse files
test login
1 parent 69beb90 commit 5864fde

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/deploy-aws.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
- main
99
- feature/deploy-to-aws
1010

11+
permissions:
12+
contents: read
13+
packages: read
14+
1115
jobs:
1216
deploy:
1317
runs-on: ubuntu-latest
@@ -66,6 +70,14 @@ jobs:
6670
echo "Checking .env.prod file:"
6771
cat .env.prod
6872
echo "Logging into Docker registry..."
73+
# Versuche zuerst einen Test-Pull
74+
docker pull ghcr.io/aet-devops25/team-devoops/client:latest || echo "Initial pull failed (expected)"
75+
# Login mit Debug-Output
6976
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
77+
# Warte kurz
78+
sleep 2
79+
# Versuche erneut zu pullen
80+
echo "Testing pull after login..."
81+
docker pull ghcr.io/aet-devops25/team-devoops/client:latest
7082
echo "Starting Docker Compose..."
7183
docker compose -f deployment/compose.aws.yml --env-file=/home/${{ vars.AWS_EC2_USER }}/.env.prod up --pull=always -d

0 commit comments

Comments
 (0)