Skip to content

Commit 4e179eb

Browse files
committed
ci: one-off model-engine mirror build (DELETE WHEN DONE)
1 parent 248c061 commit 4e179eb

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/mirror-build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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

0 commit comments

Comments
 (0)