-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.05 KB
/
opentelemetry.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
name: OpenTelemetry
on:
push:
branches:
- grafana
paths-ignore:
- '!Dockerfile'
- '!.github/workflows'
- '!**.yaml'
env:
AWS_REGION: '${{ secrets.AWS_REGION }}'
ENVIRONMENT: STAGE
AWS_STAGE: '${{ secrets.AWS_ARN }}'
REGISTRY: 'ghcr.io'
TAG: 'v2'
jobs:
push:
name: publish image
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: checkout the source code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: login to ghcr
id: ghcr
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
- name: build / tag / push docker image into ghcr
id: build-and-push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository }}:${{ env.TAG }}