forked from fluent/fluent-bit
-
Notifications
You must be signed in to change notification settings - Fork 0
95 lines (87 loc) · 2.84 KB
/
ae-build-tag.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# act -W .github/workflows/ae-build-tag.yaml -s AWS_ACCESS_KEY_ID -s AWS_SECRET_ACCESS_KEY --action-offline-mode push
name: aescape build on tags
on:
workflow_dispatch: {}
push:
paths-ignore:
- '.github/**'
- '.gitignore'
- 'appveyor.yml'
tags:
- 'v*'
jobs:
build_and_push:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract version
run: |
echo AE_VERSION=${GITHUB_REF#refs/tags/v}
echo ${{ github.event.release.tag_name }}
# - name: AWS Credentials
# uses: aws-actions/configure-aws-credentials@v4
# with:
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# aws-region: us-east-2
# - name: Login to Amazon ECR
# uses: aws-actions/amazon-ecr-login@v2
# - name: Extract metadata from Github (tag debug image)
# id: debug-meta
# uses: docker/metadata-action@v5
# with:
# images: 238850544904.dkr.ecr.us-east-2.amazonaws.com/fluent-bit
# flavor: |
# latest=false
# prefix=core-
# tags: |
# type=semver,pattern={{version}},suffix=-debug
# type=sha,prefix=core-{{branch}}-sha,suffix=-debug
# - name: Build and push debug image
# id: build_image
# uses: docker/build-push-action@v5
# with:
# file: ./dockerfiles/Dockerfile
# context: .
# platforms: linux/amd64
# target: debug
# # Must be disabled to provide legacy format images from the registry
# provenance: false
# push: true
# load: false
# tags: ${{ steps.debug-meta.outputs.tags }}
# labels: ${{ steps.debug-meta.outputs.labels }}
# build-args: |
# FLB_NIGHTLY_BUILD=OFF
# RELEASE_VERSION=$AE_VERSION
# - name: Extract metadata from Github
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: 238850544904.dkr.ecr.us-east-2.amazonaws.com/fluent-bit
# flavor: |
# latest=false
# prefix=core-
# tags: |
# type=type=semver,pattern={{version}}
# type=sha,prefix=core-{{branch}}-sha
# - name: Build and push debug image
# id: build_image
# uses: docker/build-push-action@v5
# with:
# file: ./dockerfiles/Dockerfile
# context: .
# platforms: linux/amd64
# target: production
# # Must be disabled to provide legacy format images from the registry
# provenance: false
# push: true
# load: false
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
# build-args: |
# FLB_NIGHTLY_BUILD=OFF
# RELEASE_VERSION=$AE_VERSION