-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd708fd
commit 064f266
Showing
3 changed files
with
22 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,7 @@ jobs: | |
id: generate_tag | ||
uses: anothrNick/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.STAKATER_GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.PUBLISH_TOKEN }} | ||
WITH_V: true | ||
DEFAULT_BUMP: patch | ||
DRY_RUN: true | ||
|
@@ -87,11 +87,11 @@ jobs: | |
registry: ${{env.REGISTRY}} | ||
username: stakater-user | ||
password: ${{secrets.GITHUB_TOKEN}} | ||
|
||
- name: Generate image repository path for ghcr registry | ||
run: | | ||
echo GHCR_IMAGE_REPOSITORY=${{env.REGISTRY}}/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV | ||
- name: Build and push image to ghcr registry | ||
uses: docker/build-push-action@v5 | ||
with: | ||
|
@@ -108,7 +108,7 @@ jobs: | |
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: | ||
|
@@ -135,7 +135,7 @@ jobs: | |
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.) | ||
############################## | ||
|
@@ -145,7 +145,7 @@ jobs: | |
id: generate_operator_tag | ||
uses: anothrNick/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.STAKATER_GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.PUBLISH_TOKEN }} | ||
WITH_V: false | ||
DEFAULT_BUMP: patch | ||
DRY_RUN: true | ||
|
@@ -163,7 +163,7 @@ jobs: | |
branch: master | ||
repository: stakater-charts | ||
target_dir: docs | ||
token: ${{ secrets.STAKATER_GITHUB_TOKEN }} | ||
token: ${{ secrets.GHCR_TOKEN }} | ||
charts_dir: deployments/kubernetes/chart/ | ||
charts_url: ${{ env.HELM_REGISTRY_URL }} | ||
owner: stakater | ||
|
@@ -179,30 +179,30 @@ jobs: | |
--set forecastle.config.namespaceSelector.any=true > deployments/kubernetes/forecastle.yaml | ||
helm template forecastle deployments/kubernetes/chart/forecastle/ --include-crds --output-dir deployments/kubernetes/manifests/ \ | ||
--set forecastle.service.expose="true" --set forecastle.route.enabled=true --set forecastle.route.tls.termination=reencrypt \ | ||
--set forecastle.config.namespaceSelector.any=true --set forecastle.config.crdEnabled=true | ||
mv deployments/kubernetes/manifests/forecastle/templates/* deployments/kubernetes/manifests/ | ||
mv deployments/kubernetes/manifests/forecastle/crds/* deployments/kubernetes/manifests/ | ||
--set forecastle.config.namespaceSelector.any=true --set forecastle.config.crdEnabled=true | ||
mv deployments/kubernetes/manifests/forecastle/templates/* deployments/kubernetes/manifests/ | ||
mv deployments/kubernetes/manifests/forecastle/crds/* deployments/kubernetes/manifests/ | ||
rm -r deployments/kubernetes/manifests/forecastle | ||
# Commit back changes | ||
- name: Commit files | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "stakater-user" | ||
git status | ||
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.STAKATER_GITHUB_TOKEN }} | ||
github_token: ${{ secrets.PUBLISH_TOKEN }} | ||
branch: ${{ github.ref }} | ||
|
||
- name: Push Latest Tag | ||
uses: anothrNick/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.STAKATER_GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.PUBLISH_TOKEN }} | ||
WITH_V: true | ||
DEFAULT_BUMP: patch | ||
|
||
|
@@ -213,5 +213,5 @@ jobs: | |
status: ${{ job.status }} | ||
fields: repo,author,action,eventName,ref,workflow | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.STAKATER_GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.PUBLISH_TOKEN }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters