-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trying a change to the actions to update the manifests
Signed-off-by: Tyler Marques <[email protected]>
- Loading branch information
1 parent
81b560d
commit fd5ec93
Showing
2 changed files
with
42 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,24 @@ jobs: | |
context: . | ||
push: true | ||
tags: ghcr.io/tylermarques/u-the-bomb-com:dev | ||
|
||
- name: Post build info | ||
run: echo "Docker image has been built and pushed to Docker Hub." | ||
update-manifests: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: tylermarques/homelab-infra | ||
ref: main | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Update Manifests | ||
run: | | ||
apt update && apt install -y yq | ||
cd homelab-infra | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
yq e '(.images[] | select(.name == "u-the-bomb-com") | .newTag) = "'${{ github.sha }}'"' apps/u-the-bomb-com/dev/kustomization.yaml -i | ||
git commit -am 'Increment image tag' | ||
git commit -m "Update manifests" | ||
git push |
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 |
---|---|---|
|
@@ -39,5 +39,24 @@ jobs: | |
push: true | ||
tags: ghcr.io/tylermarques/u-the-bomb-com:prod | ||
|
||
- name: Post build info | ||
run: echo "Docker image has been built and pushed to Docker Hub." | ||
update-manifests: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: tylermarques/homelab-infra | ||
ref: main | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Update Manifests | ||
run: | | ||
apt update && apt install -y yq | ||
cd homelab-infra | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
yq e '(.images[] | select(.name == "u-the-bomb-com") | .newTag) = "'${{ github.sha }}'"' apps/u-the-bomb-com/prod/kustomization.yaml -i | ||
git commit -am 'Increment image tag' | ||
git commit -m "Update manifests" | ||
git push |