forked from kedacore/keda
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (59 loc) · 1.97 KB
/
release-docker.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
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
name: Build docker
on:
workflow_dispatch:
jobs:
deploy:
name: Build docker
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
id-token: write # needed for signing the images with GitHub OIDC Token **not production ready**
env:
ENV: qa
VAULT_PREFIX: in2
DEPLOYMENT_NAME: keda
RELEASE_NAME: keda
GCP_PROJECT_ID: dev-in2
GCP_REGION: asia-south1
GCP_NAMESPACE: ion2
GCP_CLUSTER: dev-in2
DOCKER_GIT_TOKEN: ${{ secrets.DOCKER_GIT_TOKEN }}
container: ghcr.io/kedacore/build-tools:1.20.5
steps:
- name: Set up Repo Cloud SDK
uses: google-github-actions/[email protected]
with:
project_id: ${{ env.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GKE_SA_KEY }}
export_default_credentials: true
- name: Checkout
uses: actions/checkout@v3
with:
# ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 1
token: ${{ secrets.DOCKER_GIT_TOKEN }}
- name: Set up Dev Cloud SDK
uses: google-github-actions/[email protected]
with:
service_account_key: ${{ secrets.GCP_DEV_SA_KEY }}
export_default_credentials: true
- name: Register workspace path
run: git config --global --add safe.directory "/__w/keda/keda"
- name: Go modules sync
run: go mod tidy -compat=1.20
#run: go mod tidy -compat=1.22.5
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(./version.sh)
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker configuration
run: |-
gcloud --quiet auth configure-docker
- name: Publish KEDA images
run: make publish
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}
IMAGE_REGISTRY: gcr.io/dev-in-309805
IMAGE_REPO: 100mslive