-
Notifications
You must be signed in to change notification settings - Fork 741
51 lines (44 loc) · 1.69 KB
/
python-eagle-eye-manual-build-publish.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Eagle Eye Image Publish
on:
workflow_dispatch:
inputs:
branch:
type: string
description: Branch to push/publish
required: true
jobs:
build-eagle-eye-dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{inputs.branch}}
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-central-1
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Version Info
run: |
echo eagle eye lambda image build is starting with version: ${{ env.RELEASE_VERSION }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Inspect builder
run: |
echo "Name: ${{ steps.buildx.outputs.name }}"
echo "Endpoint: ${{ steps.buildx.outputs.endpoint }}"
echo "Status: ${{ steps.buildx.outputs.status }}"
echo "Flags: ${{ steps.buildx.outputs.flags }}"
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
- name: Build with buildx
working-directory: ./premium/eagle-eye
run: docker buildx build -f ./Dockerfile --platform linux/amd64 -t 359905442998.dkr.ecr.eu-central-1.amazonaws.com/python-eagle-eye-lambda:${{ env.RELEASE_VERSION }} --push .