This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
123 lines (107 loc) · 4.19 KB
/
stakater_buildah_as_user.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
name: Stakater buildah as user cluster task Helm Chart
on:
pull_request:
branches:
- main
paths:
- 'stakater-buildah-as-user/**'
push:
branches:
- main
paths:
- 'stakater-buildah-as-user/**'
jobs:
# clustertask-test-run:
# name: ClusterTask Test Run on SNO
# runs-on: self-hosted
# if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main'
# steps:
# - name: Check out code
# uses: actions/checkout@v3
# with:
# fetch-depth: 0
# ref: ${{github.event.pull_request.head.sha}}
# - name: Install CLI tools from OpenShift Mirror
# uses: redhat-actions/openshift-tools-installer@v1
# with:
# oc: "4"
# # This is used to setup kubeconfig, required by Tilt
# - name: Login to cluster
# run: oc login --token=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token) --server=https://kubernetes.default.svc --insecure-skip-tls-verify=true
# - name: Set up Helm
# uses: azure/setup-helm@v3
# with:
# version: v3.8.2
# # This is required for login to ghcr helm registry
# - name: Login to Container Registry
# uses: docker/login-action@v2
# with:
# registry: ghcr.io/stakater
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Install kubectl
# uses: azure/setup-kubectl@v3
# with:
# version: v1.26.0
# - name: Install tilt
# run: curl -fsSL https://raw.githubusercontent.com/tilt-dev/tilt/master/scripts/install.sh | bash
# - name: Tilt CI - Setup Dependencies
# run: tilt ci -f .github/Tiltfile-setup-dependencies
# - name: Tilt CI - Run Clustertask
# env:
# TEST_GIT_REPO_SECRET: ${{ secrets.TEKTON_CATALOG_ARC_CLUSTERTASK_TOKEN }}
# # Token created with stakater-user. Expires on Thu, Jun 29 2023.
# run: tilt ci -f stakater-buildah-as-user/tests/Tiltfile-clustertask
# - name: Tilt down - Clustertask
# if: always()
# run: tilt down -f stakater-buildah-as-user/tests/Tiltfile-delete-clustertask
# - name: Tilt down - Dependencies
# if: always()
# run: tilt down -f .github/Tiltfile-delete-dependencies --delete-namespaces
next-version:
uses: stakater/tekton-catalog/.github/workflows/next_version.yaml@main
with:
component: stakater-buildah-as-user
# pull-request:
# uses: stakater/tekton-catalog/.github/workflows/pull_request.yaml@main
# name: Pull Request
# if: ${{ github.ref != 'refs/heads/main' }}
# needs:
# - next-version
# secrets:
# REGISTRY_USERNAME: ${{ github.actor }}
# REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
# with:
# CONTAINER_REGISTRY_URL: ghcr.io/stakater
# HELM_REGISTRY_URL: oci://ghcr.io/stakater/charts
# SUBPATH: stakater-buildah-as-user
# PUSH_CONTAINER_IMAGE: ${{ needs.next-version.outputs.dockerfile_exists }}
# PUBLISH_HEM_CHART: ${{ needs.next-version.outputs.helm_chart_exists }}
# NEXT_VERSION: ${{ needs.next-version.outputs.version }}
# push-and-release:
# uses: stakater/tekton-catalog/.github/workflows/push.yaml@main
# name: Push and Release
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
# needs:
# - next-version
# secrets:
# REGISTRY_USERNAME: ${{ github.actor }}
# REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
# with:
# CONTAINER_REGISTRY_URL: ghcr.io/stakater
# HELM_REGISTRY_URL: oci://ghcr.io/stakater/charts
# SUBPATH: stakater-buildah-as-user
# PUSH_CONTAINER_IMAGE: ${{ needs.next-version.outputs.dockerfile_exists }}
# PUBLISH_HEM_CHART: ${{ needs.next-version.outputs.helm_chart_exists }}
# NEXT_VERSION: ${{ needs.next-version.outputs.version }}
render-and-replace:
uses: stakater/tekton-catalog/.github/workflows/render_task.yaml@main
name: Render and Replace
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs:
- next-version
secrets:
STAKATER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
SUBPATH: stakater-buildah-as-user
NEXT_VERSION: ${{ needs.next-version.outputs.version }}