Skip to content
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
702eb68
WIP add config option
matthijswolters-rl Sep 24, 2024
c1af023
Update controller-gen version
matthijswolters-rl Sep 26, 2024
ce4156b
Update formatting for base CRDS
matthijswolters-rl Sep 26, 2024
5c69fd4
Working read secret
matthijswolters-rl Oct 1, 2024
6b2bb1d
Fixed read secret
matthijswolters-rl Oct 1, 2024
bd43d94
Use new secret function not client function
matthijswolters-rl Oct 2, 2024
9264921
Revert random formatting changes
matthijswolters-rl Oct 2, 2024
eab5ea3
More stupid formatting fixes
matthijswolters-rl Oct 2, 2024
b09b83c
Final formatting fixes
matthijswolters-rl Oct 2, 2024
b85d4a7
Small fixes and docs update
matthijswolters-rl Oct 2, 2024
89375da
Update example
matthijswolters-rl Oct 2, 2024
ce3811a
Update CRDs
matthijswolters-rl Oct 3, 2024
df4e885
Add raw_post_data var to statuscake
matthijswolters-rl Oct 2, 2024
7107f26
Add user_agent var to statuscake
matthijswolters-rl Oct 2, 2024
ba83b4b
Update formatting for user_agent
matthijswolters-rl Oct 2, 2024
eb5bcde
Fix tabs in statuscake-monitor.go
matthijswolters-rl Oct 2, 2024
68f525c
Update base crds
matthijswolters-rl Oct 2, 2024
65ae645
Docs and example update
matthijswolters-rl Oct 2, 2024
2eff906
Update CRDs
matthijswolters-rl Oct 3, 2024
28c025a
Implement Equals function using TestTags
matthijswolters-rl Oct 3, 2024
c723da3
Test PUSH CI
matthijswolters-rl Oct 3, 2024
74c95e8
Remove unnecessary CI
matthijswolters-rl Oct 3, 2024
06bca0e
Fix username and registry link
matthijswolters-rl Oct 3, 2024
181ada2
Remove testing branch
matthijswolters-rl Oct 4, 2024
7f7aefc
Merge branch 'master' into feature/fix-docker-image-ci
matthijswolters-rl Oct 24, 2024
5312b06
Delete commented stuff
matthijswolters-rl Oct 24, 2024
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
140 changes: 3 additions & 137 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:
KUSTOMIZE_VERSION: "4.5.7"
KUBERNETES_VERSION: "1.23.5"
KIND_VERSION: "v0.17.0"
HELM_REGISTRY_URL: "https://stakater.github.io/stakater-charts"
HELM_REGISTRY_URL: ""
HELM_VERSION: v3.8.2
REGISTRY: ghcr.io

Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
uses: docker/login-action@v3
with:
registry: ${{env.REGISTRY}}
username: stakater-user
username: imc-user
password: ${{secrets.GITHUB_TOKEN}}

- name: Generate image repository path for ghcr registry
Expand All @@ -117,144 +117,10 @@ jobs:
cache-to: type=inline
cache-from: type=gha
build-args: BUILD_PARAMETERS=${{ env.BUILD_PARAMETERS }}
platforms: linux/amd64,linux/arm,linux/arm64
platforms: linux/amd64
tags: |
${{ env.GHCR_IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.new_tag }}
labels: |
org.opencontainers.image.source=${{ github.event.repository.clone_url }}
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}

- name: Login to Dockerhub Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.STAKATER_DOCKERHUB_USERNAME }}
password: ${{ secrets.STAKATER_DOCKERHUB_PASSWORD }}

- name: Generate image repository path for DockerHub registry
run: |
echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV

- name: Build and push image to DockerHub registry
uses: docker/build-push-action@v5
with:
context: .
file: ${{ env.DOCKER_FILE_PATH }}
pull: true
push: true
build-args: BUILD_PARAMETERS=${{ env.BUILD_PARAMETERS }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm,linux/arm64
tags: |
${{ env.IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.new_tag }}
labels: |
org.opencontainers.image.source=${{ github.event.repository.clone_url }}
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}

##############################
## Add steps to generate required artifacts for a release here(helm chart, operator manifest etc.)
##############################

# Generate tag for operator without "v"
- name: Generate Operator Tag
id: generate_operator_tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
WITH_V: false
DEFAULT_BUMP: patch
DRY_RUN: true

# Install operator-sdk
- name: Install operator-sdk
uses: redhat-actions/openshift-tools-installer@v1
with:
source: "github"
operator-sdk: ${{ env.OPERATOR_SDK_VERSION }}

# Install kustomize
- name: Install kustomize
uses: imranismail/setup-kustomize@v2
with:
kustomize-version: ${{ env.KUSTOMIZE_VERSION }}

- name: Generate Bundle
env:
VERSION: ${{ steps.generate_operator_tag.outputs.new_tag }}
IMG: ${{ env.IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.new_tag }}
run: make bundle

- name: Verify bundle
run: operator-sdk bundle validate ./bundle --select-optional name=operatorhub

- name: Build and push Bundle Image
uses: docker/build-push-action@v5
with:
context: .
file: ${{ env.BUNDLE_DOCKER_FILE_PATH }}
pull: true
push: true
cache-to: type=inline
tags: |
${{ env.IMAGE_REPOSITORY }}-bundle:${{ steps.generate_tag.outputs.new_tag }}
labels: |
org.opencontainers.image.source=${{ github.event.repository.clone_url }}
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}

# Update chart tag to the latest semver tag
- name: Update Chart Version
env:
VERSION: ${{ steps.generate_operator_tag.outputs.new_tag }}
run: make bump-chart

- name: Update Chart CRDs
run: make generate-crds

# Publish helm chart
- name: Publish Helm chart
uses: stefanprodan/helm-gh-pages@master
with:
branch: master
repository: stakater-charts
target_dir: docs
token: ${{ secrets.GHCR_TOKEN }}
charts_dir: charts/
charts_url: ${{ env.HELM_REGISTRY_URL }}
owner: stakater
linting: on
commit_username: stakater-user
commit_email: [email protected]

# Commit back changes
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "stakater-user"
git status
git add .
git commit -m "[skip-ci] Update artifacts" -a

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.PUBLISH_TOKEN }}

# Push Latest Tag
- name: Push Latest Tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
WITH_V: true
DEFAULT_BUMP: patch

- name: Notify Slack
uses: 8398a7/action-slack@v3
if: always() # Pick up events even if the job fails or is canceled.
with:
status: ${{ job.status }}
fields: repo,author,action,eventName,ref,workflow
env:
SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }}
Loading