File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : mirror-build
2+
3+ on :
4+ push :
5+ branches :
6+ - ' mirror/**'
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ with :
14+ fetch-depth : 2
15+
16+ - id : tag
17+ run : |
18+ PARENT=$(git rev-parse HEAD~1)
19+ echo "tag=$PARENT" >> "$GITHUB_OUTPUT"
20+ echo "Building tag: $PARENT"
21+
22+ - uses : aws-actions/configure-aws-credentials@v4
23+ with :
24+ aws-region : us-west-2
25+ aws-access-key-id : ${{ secrets.ARTIFACTS_AWS_ACCESS_KEY_ID }}
26+ aws-secret-access-key : ${{ secrets.ARTIFACTS_AWS_SECRET_ACCESS_KEY }}
27+ aws-session-token : ${{ secrets.ARTIFACTS_AWS_SESSION_TOKEN }}
28+
29+ - uses : aws-actions/amazon-ecr-login@v2
30+
31+ - uses : docker/setup-buildx-action@v3
32+
33+ - uses : docker/build-push-action@v6
34+ with :
35+ context : .
36+ file : model-engine/Dockerfile
37+ platforms : linux/amd64
38+ push : true
39+ tags : 022465994601.dkr.ecr.us-west-2.amazonaws.com/egp-mirror-int/model-engine:${{ steps.tag.outputs.tag }}
40+ provenance : false
You can’t perform that action at this time.
0 commit comments