File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 88 - main
99 - feature/deploy-to-aws
1010
11+ permissions :
12+ contents : read
13+ packages : read
14+
1115jobs :
1216 deploy :
1317 runs-on : ubuntu-latest
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
You can’t perform that action at this time.
0 commit comments