Skip to content

Commit d24c548

Browse files
author
Alexey Karasev
committed
Add github workflow and transfer image
1 parent ea01b20 commit d24c548

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/push.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build Artifacts
2+
on:
3+
release:
4+
types: [created]
5+
push:
6+
branches:
7+
- '**'
8+
env:
9+
TAG_NAME: ${{ github.event.release.tag_name || (github.ref == 'refs/heads/main' && 'main' || ( inputs.postfix != '' && format('{0}-{1}', github.ref, inputs.postfix) || 'none' )) }}
10+
11+
jobs:
12+
multiplatform_build:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
component:
17+
- name: diag-proxy
18+
file: Dockerfile
19+
- name: jaeger-transfer
20+
file: docker-transfer/Dockerfile
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
- name: Set up QEMU
26+
uses: docker/setup-qemu-action@v3
27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@v3
29+
- name: Login to Docker Hub
30+
uses: docker/login-action@v3
31+
with:
32+
registry: ghcr.io
33+
username: ${GITHUB_ACTOR}
34+
password: ${{secrets.GITHUB_TOKEN}}
35+
- name: Build and push
36+
uses: docker/build-push-action@v5
37+
with:
38+
no-cache: true
39+
context: ${{ matrix.component.context }}
40+
file: ${{ matrix.component.file }}
41+
platforms: linux/amd64,linux/arm64
42+
push: true
43+
tags: ghcr.io/netcracker/${{ matrix.component.name }}:${{ env.TAG_NAME }}
44+
provenance: false

docker-transfer/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM scratch
2+
3+
# Collect helm charts and documentation
4+
COPY charts /charts
5+
COPY docs /docs

0 commit comments

Comments
 (0)