forked from fybrik/fybrik
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.18 KB
/
debug_build.yml
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
name: Custom Build
on:
workflow_dispatch:
inputs:
dockerTag:
description: 'Docker Tag'
required: true
default: 'latest'
env:
GO_VERSION: 1.19
jobs:
build-and-publish:
if: github.repository != 'fybrik/fybrik'
name: Build and publish images
runs-on: ubuntu-latest
env:
DOCKER_HOSTNAME: "ghcr.io"
DOCKER_NAMESPACE: ${{ github.actor }}
DOCKER_TAG: ${{ github.event.inputs.dockerTag }}
DOCKER_USERNAME: ${{ github.actor }}
DOCKER_PASSWORD: ${{ github.token }}
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
${{ github.workspace }}/hack/tools/bin
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-custom
- run: echo "Pushing images to ${DOCKER_HOSTNAME}/${DOCKER_NAMESPACE} from branch ${{ github.ref }}"
- name: Build and push docker images
run: make docker
- name: Push helm charts
run: make -C modules helm-chart-push