-
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.
- Loading branch information
Showing
3 changed files
with
57 additions
and
57 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 |
---|---|---|
|
@@ -60,7 +60,7 @@ jobs: | |
file: coverage.lcov | ||
allow-empty: true | ||
|
||
ct-lint: | ||
chart-testing: | ||
runs-on: self-hosted | ||
steps: | ||
|
||
|
@@ -100,3 +100,55 @@ jobs: | |
- name: Run chart-testing (install) | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: ct install --target-branch ${{ github.event.repository.default_branch }} | ||
|
||
skaffold-build: | ||
name: π·ββοΈ Run skaffold build | ||
needs: ci | ||
runs-on: self-hosted | ||
steps: | ||
# Login to docker hub | ||
- name: π Login to hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} | ||
password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} | ||
registry: docker.io | ||
|
||
# Get a local copy of the code | ||
- uses: actions/checkout@v4 | ||
|
||
# Prepare cache storage | ||
- name: β»οΈ Cache skaffold dirs | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-skaffold | ||
with: | ||
path: /home/runner/.skaffold | ||
key: skaffold-${{ github.sha }} | ||
restore-keys: | | ||
skaffold- | ||
# Install tools with asdf | ||
- name: π¦ Install tools with asdf | ||
uses: asdf-vm/actions/install@v3 | ||
|
||
# install buildx | ||
# FIXME: should not this being done upstream ? | ||
- name: π¦ Install buildx | ||
run: | | ||
echo "+ install buildx" | ||
wget -O ~/.docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v0.12.1/buildx-v0.12.1.linux-amd64 | ||
chmod a+x ~/.docker/cli-plugins/docker-buildx | ||
docker buildx create --name multiarch --use | ||
docker buildx inspect --bootstrap | ||
env: | ||
DOCKER_CLI_EXPERIMENTAL: enabled | ||
|
||
# Run a skaffold build | ||
- name: π Run skaffold build | ||
uses: hiberbee/[email protected] | ||
with: | ||
skaffold-version: 2.8.0 | ||
command: build | ||
repository: ${{ vars.SKAFFOLD_DEFAULT_REPO }} | ||
tag: ${{ github.event.inputs.tagVersion }} |
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 |
---|---|---|
|
@@ -27,58 +27,6 @@ jobs: | |
name: Continuous Integration | ||
uses: ./.github/workflows/__shared-ci.yml | ||
|
||
skaffold-build: | ||
name: π·ββοΈ Run skaffold build | ||
needs: ci | ||
runs-on: self-hosted | ||
steps: | ||
# Login to docker hub | ||
- name: π Login to hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} | ||
password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} | ||
registry: docker.io | ||
|
||
# Get a local copy of the code | ||
- uses: actions/checkout@v4 | ||
|
||
# Prepare cache storage | ||
- name: β»οΈ Cache skaffold dirs | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-skaffold | ||
with: | ||
path: /home/runner/.skaffold | ||
key: skaffold-${{ github.sha }} | ||
restore-keys: | | ||
skaffold- | ||
# Install tools with asdf | ||
- name: π¦ Install tools with asdf | ||
uses: asdf-vm/actions/install@v3 | ||
|
||
# install buildx | ||
# FIXME: should not this being done upstream ? | ||
- name: π¦ Install buildx | ||
run: | | ||
echo "+ install buildx" | ||
wget -O ~/.docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v0.12.1/buildx-v0.12.1.linux-amd64 | ||
chmod a+x ~/.docker/cli-plugins/docker-buildx | ||
docker buildx create --name multiarch --use | ||
docker buildx inspect --bootstrap | ||
env: | ||
DOCKER_CLI_EXPERIMENTAL: enabled | ||
|
||
# Run a skaffold build | ||
- name: π Run skaffold build | ||
uses: hiberbee/[email protected] | ||
with: | ||
skaffold-version: 2.8.0 | ||
command: build | ||
repository: ${{ vars.SKAFFOLD_DEFAULT_REPO }} | ||
tag: ${{ github.event.inputs.tagVersion }} | ||
|
||
helm-push: | ||
name: π·ββοΈ Run helm push | ||
needs: ci | ||
|