Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Asfa mumtaz patch 2 #235

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
f3f6f23
Update render_task.yaml
AsfaMumtaz Oct 2, 2023
89f1cd4
Update clustertask.yaml
AsfaMumtaz Oct 2, 2023
d20c3ad
Update clustertask.yaml
AsfaMumtaz Oct 2, 2023
294b259
Merge pull request #1 from AsfaMumtaz/AsfaMumtaz-patch-1
AsfaMumtaz Oct 2, 2023
9b16dad
Update stakater_buildah.yaml
AsfaMumtaz Oct 2, 2023
e42f4d0
Update stakater_buildah_as_user.yaml
AsfaMumtaz Oct 2, 2023
7d46b15
Update clustertask.yaml
AsfaMumtaz Oct 2, 2023
b985bd3
Update clustertask.yaml
AsfaMumtaz Oct 2, 2023
6a482dc
Merge pull request #2 from AsfaMumtaz/AsfaMumtaz-patch-2
AsfaMumtaz Oct 2, 2023
c202914
[skip ci] Add rendered and modified Helm chart
stakater-user Oct 2, 2023
693439e
Update render_task.yaml
AsfaMumtaz Oct 2, 2023
c630b17
Update clustertask.yaml
AsfaMumtaz Oct 2, 2023
3c5f526
Update README.md
AsfaMumtaz Oct 2, 2023
f06fd15
Merge pull request #3 from AsfaMumtaz/AsfaMumtaz-patch-3
AsfaMumtaz Oct 2, 2023
39a658f
[skip ci] Add rendered and modified Helm chart
stakater-user Oct 2, 2023
0a274ba
Update clustertask.yaml
AsfaMumtaz Oct 2, 2023
f8b7078
Update clustertask.yaml
AsfaMumtaz Oct 2, 2023
09e286a
Merge pull request #4 from AsfaMumtaz/AsfaMumtaz-patch-4
AsfaMumtaz Oct 2, 2023
709fc3c
[skip ci] Add rendered and modified Helm chart
stakater-user Oct 2, 2023
340ac4c
Update render_task.yaml
AsfaMumtaz Oct 2, 2023
c0cedc4
Update clustertask.yaml
AsfaMumtaz Oct 2, 2023
6fbe872
Update clustertask.yaml
AsfaMumtaz Oct 2, 2023
9992dea
Merge pull request #5 from AsfaMumtaz/AsfaMumtaz-patch-1
AsfaMumtaz Oct 2, 2023
0395551
[skip ci] Add rendered and modified Helm chart
stakater-user Oct 2, 2023
046f3bb
Update render_task.yaml
AsfaMumtaz Oct 5, 2023
60559f5
Update clustertask.yaml
AsfaMumtaz Oct 5, 2023
6f20c32
Update clustertask.yaml
AsfaMumtaz Oct 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/render_task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ concurrency:
jobs:
render_and_replace:
runs-on: ubuntu-latest
strategy:
fail-fast: false # Set to false to retry the entire job even if one job fails
matrix:
retry-max: [1, 2, 3]

steps:
- name: Checkout Repository
Expand Down Expand Up @@ -49,7 +53,19 @@ jobs:
run: |
sed -i 's/ClusterTask/Task/g' ${{ inputs.SUBPATH }}/rendered/${{ inputs.SUBPATH }}-${{ inputs.NEXT_VERSION }}.yaml
sed -i -E 's/${{ inputs.SUBPATH }}-[0-9]+\.[0-9]+\.[0-9]+/${{ inputs.SUBPATH }}-${{ inputs.NEXT_VERSION }}/g' ${{ inputs.SUBPATH }}/rendered/${{ inputs.SUBPATH }}-${{ inputs.NEXT_VERSION }}.yaml

- name: Git pull
run: |
# Ensure you are on the correct branch
git checkout main # Replace "main" with your branch name

# Fetch the latest changes from the remote repository
git fetch origin main:main

# Merge the fetched changes into your local branch
git merge origin/main

# Optionally, resolve any merge conflicts if needed
# git commit -m "Merge remote changes" -a
- name: Commit Changes
run: |
git config --global user.email "[email protected]"
Expand All @@ -58,6 +74,7 @@ jobs:
git commit -m "[skip ci] Add rendered and modified Helm chart"
git pull


- name: Push changes
uses: ad-m/github-push-action@master
with:
Expand Down
184 changes: 92 additions & 92 deletions .github/workflows/stakater_buildah.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,102 +13,102 @@ on:
- 'stakater-buildah/**'

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/tests/Tiltfile-clustertask

- name: Tilt down - Clustertask
if: always()
run: tilt down -f stakater-buildah/tests/Tiltfile-delete-clustertask

- name: Tilt down - Dependencies
if: always()
run: tilt down -f .github/Tiltfile-delete-dependencies --delete-namespaces
# 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/tests/Tiltfile-clustertask

# - name: Tilt down - Clustertask
# if: always()
# run: tilt down -f stakater-buildah/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

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
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
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 }}
# 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
# 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
# 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
Expand All @@ -117,7 +117,7 @@ jobs:
needs:
- next-version
secrets:
STAKATER_GITHUB_TOKEN: ${{ secrets.STAKATER_GITHUB_TOKEN }}
STAKATER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
SUBPATH: stakater-buildah
NEXT_VERSION: ${{ needs.next-version.outputs.version }}
Loading
Loading