build: Rebase to gitea actions pipeline
Some checks failed
Container & Helm chart / Linting (push) Failing after 1m1s
Container & Helm chart / Semantic Release (Dry-run) (push) Failing after 2m13s
Container & Helm chart / Cluster API node template (push) Has been skipped

This commit is contained in:
Danny Bessems 2024-06-08 20:43:37 +10:00
parent 24aaf55e4b
commit 7e6c1d6aa9
2 changed files with 107 additions and 2 deletions

View File

@ -0,0 +1,105 @@
name: Container & Helm chart
on: [push]
jobs:
linting:
name: Linting
runs-on: dind-rootless
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: yamllint
uses: bewuethr/yamllint-action@v1
with:
config-file: .yamllint.yaml
semrel_dryrun:
name: Semantic Release (Dry-run)
runs-on: dind-rootless
outputs:
version: ${{ steps.sem_rel.outputs.version }}
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: |
npm install \
semantic-release \
@semantic-release/commit-analyzer \
@semantic-release/exec
- name: Semantic Release (dry-run)
id: sem_rel
run: |
npx semantic-release \
--package @semantic-release/exec \
--package semantic-release \
--branches ${{ gitea.refname }} \
--tag-format 'v${version}' \
--dry-run \
--plugins @semantic-release/commit-analyzer,@semantic-release/exec \
--analyzeCommits @semantic-release/commit-analyzer \
--verifyRelease @semantic-release/exec \
--verifyReleaseCmd 'echo "version=${nextRelease.version}" >> $GITHUB_OUTPUT'
env:
GIT_CREDENTIALS: ${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_APIKEY }}
- name: Assert semantic release output
run: |
[[ -z "${{ steps.sem_rel.outputs.version }}" ]] && {
echo 'No release tag - exiting'; exit 1
} || {
echo 'Release tag set correctly: ${{ steps.sem_rel.outputs.version }}'; exit 0
}
build_image:
name: Cluster API node template
container:
image: registry.k8s.io/scl-image-builder/cluster-node-image-builder-amd64:v0.1.29
volumes:
- /data:/data
- /output:/output
runs-on: dind-rootless
needs: [semrel_dryrun, linting]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
make deps-ova
- name: Build node template
run: |
make build-node-ova-vsphere-ubuntu-2204
# env:
# PACKER_LOG: 1
# semrel:
# name: Semantic Release
# runs-on: dind-rootless
# needs: [build_container, build_chart]
# steps:
# - name: Check out repository code
# uses: actions/checkout@v3
# - name: Setup Node
# uses: actions/setup-node@v3
# with:
# node-version: 20
# - name: Install dependencies
# run: |
# npm install \
# semantic-release \
# @semantic-release/changelog \
# @semantic-release/commit-analyzer \
# @semantic-release/git \
# @semantic-release/release-notes-generator
# - name: Semantic Release
# run: |
# npx semantic-release \
# --branches ${{ gitea.refname }} \
# --tag-format 'v${version}' \
# --plugins @semantic-release/commit-analyzer,@semantic-release/release-notes-generator,@semantic-release/changelog,@semantic-release/git
# env:
# GIT_CREDENTIALS: ${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_APIKEY }}

View File

@ -8,9 +8,9 @@
"distro_name": "ubuntu", "distro_name": "ubuntu",
"distro_version": "22.04", "distro_version": "22.04",
"guest_os_type": "ubuntu-64", "guest_os_type": "ubuntu-64",
"iso_checksum": "5e38b55d57d94ff029719342357325ed3bda38fa80054f9330dc789cd2d43931", "iso_checksum": "a4acfda10b18da50e2ec50ccaf860d7f20b389df8765611142305c0e911d16fd",
"iso_checksum_type": "sha256", "iso_checksum_type": "sha256",
"iso_url": "https://releases.ubuntu.com/jammy/ubuntu-22.04.2-live-server-amd64.iso", "iso_url": "https://releases.ubuntu.com/jammy/ubuntu-22.04.3-live-server-amd64.iso",
"os_display_name": "Ubuntu 22.04", "os_display_name": "Ubuntu 22.04",
"shutdown_command": "shutdown -P now", "shutdown_command": "shutdown -P now",
"vsphere_guest_os_type": "ubuntu64Guest" "vsphere_guest_os_type": "ubuntu64Guest"