File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 44 release :
55 types :
66 - created
7- # branches: [ master ]
87
98jobs :
109
2322
2423 - name : Push Image to AWS Regristry
2524 run : docker push 949266541515.dkr.ecr.eu-west-1.amazonaws.com/ci-hackathon-app:${GITHUB_REF##*/}
25+
26+ - name : Extract staticfiles folder from image
27+ run : ./extract_staticfiles.sh ${GITHUB_REF##*/}
28+
29+ - name : Push staticfiles to S3
30+ run : AWS_DEFAULT_REGION=eu-west-1 AWS_ACCESS_KEY_ID=${{secrets.AWS_ACCESS_KEY}} AWS_SECRET_ACCESS_KEY=${{secrets.AWS_SECRET_ACCESS_KEY}} aws s3 cp --recursive --acl public-read static s3://codeinstitute-webpublic/hackathon_staticfiles/${GITHUB_REF##*/}
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ rm -fr static
4+
5+ container_id=$( docker create 949266541515.dkr.ecr.eu-west-1.amazonaws.com/ci-hackathon-app:$1 )
6+ docker cp $container_id :/static ./static
7+ docker rm -v $container_id
8+
You can’t perform that action at this time.
0 commit comments