39 Commits

Author SHA1 Message Date
5e4567b162 chore: Specify fully qualified container image name
Some checks failed
Container & Helm chart / Semantic Release (Dry-run) (push) Successful in 1m3s
Container & Helm chart / Cluster API node template (push) Failing after 5s
2024-06-08 21:49:36 +10:00
7febe35286 chore: Switch to dind-rootless runner
Some checks failed
Container & Helm chart / Semantic Release (Dry-run) (push) Successful in 44s
Container & Helm chart / Cluster API node template (push) Failing after 5s
2024-06-08 21:42:26 +10:00
7f68acc95e chore: Inherit dind volumes
Some checks failed
Container & Helm chart / Semantic Release (Dry-run) (push) Successful in 56s
Container & Helm chart / Cluster API node template (push) Failing after 5s
2024-06-08 21:40:16 +10:00
ca01cc7d4c chore: Switch to dind runner
Some checks failed
Container & Helm chart / Semantic Release (Dry-run) (push) Successful in 25s
Container & Helm chart / Cluster API node template (push) Failing after 1m6s
2024-06-08 21:30:55 +10:00
809574dcd2 build: Rebase to existing docker-run action
Some checks failed
Container & Helm chart / Semantic Release (Dry-run) (push) Successful in 1m9s
Container & Helm chart / Cluster API node template (push) Failing after 23s
2024-06-08 21:28:36 +10:00
64ed3cd449 chore: Specify user to run action steps as
Some checks failed
Container & Helm chart / Semantic Release (Dry-run) (push) Successful in 1m17s
Container & Helm chart / Cluster API node template (push) Failing after 1m20s
2024-06-08 21:10:16 +10:00
bbaff25725 chore: Attempt privilege escalation
Some checks failed
Container & Helm chart / Semantic Release (Dry-run) (push) Successful in 25s
Container & Helm chart / Cluster API node template (push) Failing after 2s
2024-06-08 21:05:41 +10:00
c70620e88c build: Explicitly install node through package manager
Some checks failed
Container & Helm chart / Semantic Release (Dry-run) (push) Successful in 1m4s
Container & Helm chart / Cluster API node template (push) Failing after 2s
2024-06-08 21:03:15 +10:00
f25d15ed39 chore: Install node as first action workflow step
Some checks failed
Container & Helm chart / Semantic Release (Dry-run) (push) Successful in 47s
Container & Helm chart / Cluster API node template (push) Failing after 4s
2024-06-08 20:56:00 +10:00
11ac815ac6 chore: Disable mountpoints
Some checks failed
Container & Helm chart / Semantic Release (Dry-run) (push) Successful in 1m22s
Container & Helm chart / Cluster API node template (push) Failing after 3s
2024-06-08 20:51:26 +10:00
abc231fb22 feat: Initial release w/ semantic release
Some checks failed
Container & Helm chart / Semantic Release (Dry-run) (push) Successful in 38s
Container & Helm chart / Cluster API node template (push) Failing after 1m30s
2024-06-08 20:47:20 +10:00
5c1dcf95c8 chore: Disable linting job
Some checks failed
Container & Helm chart / Semantic Release (Dry-run) (push) Failing after 28s
Container & Helm chart / Cluster API node template (push) Has been skipped
2024-06-08 20:46:12 +10:00
7e6c1d6aa9 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
2024-06-08 20:43:37 +10:00
24aaf55e4b Add cloud-init VMware datasource
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-20 09:19:46 +02:00
297fb39202 Upgrade kubeadm apiVersion
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-19 12:38:09 +02:00
13b8e4c43d Upgrade K8s major version
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-05-19 12:17:34 +02:00
cc0f2bd683 Rebase OS version;Upgrade K8s minor version
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-19 12:11:01 +02:00
619923b2d4 Upgrade K8s version
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-18 20:18:09 +01:00
19628c3080 Remove custom ansible role (overwrite cloud-init datasource priority)
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-18 20:15:48 +01:00
e6c366a5be Remove redundant package installation
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-04 15:50:41 +01:00
12ae24f950 Disable unrelated dependency
Some checks failed
continuous-integration/drone/push Build is failing
2023-03-04 13:01:08 +01:00
b94b7a2916 Update versions
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-03-04 12:47:18 +01:00
652a5d25c9 Fix pause image tag
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-03 13:03:21 +01:00
8b30841fc4 Override cloud-init datasource list;Add package open-iscsi
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-03 09:59:03 +01:00
af4c3a1b08 Fix var reference; Revert file move
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-02 12:14:12 +01:00
51f36b921d Copy cloud-init files
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-03-02 12:06:54 +01:00
5d279e0e86 Downgrade OS
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-03-02 11:45:22 +01:00
567749e74d Unlock builder account;Revert debug user
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-02 11:42:39 +01:00
3b644541dd Add additional package;Force ovftool
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-02 09:45:02 +01:00
d29e73a424 Move debug user creation
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-25 13:28:14 +01:00
ad38b34ce4 Copy subfolders
Some checks reported errors
continuous-integration/drone/push Build was killed
2023-02-25 12:52:37 +01:00
0a2cc82e2d Fix non-empty folder move
Some checks failed
continuous-integration/drone/push Build is failing
2023-02-25 11:25:32 +01:00
e27b3f1f6f Revert output directory;Add sleep for debugging
Some checks failed
continuous-integration/drone/push Build is failing
2023-02-25 10:48:18 +01:00
963930e04d Fix var reference
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-02-24 21:35:14 +01:00
8463a257d6 Output directly to volume
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-24 17:23:44 +01:00
ad8df64b13 Fix fileglob
Some checks failed
continuous-integration/drone/push Build is failing
2023-02-24 10:58:11 +01:00
d828b83e0b Debug working directory;Fix path
Some checks failed
continuous-integration/drone/push Build is failing
2023-02-24 10:32:16 +01:00
139629a458 Move artifact to output volume;Add debug user
Some checks failed
continuous-integration/drone/push Build is failing
2023-02-24 09:39:50 +01:00
e220c2bc24 Destroy VM after build;Debug output
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-23 22:22:23 +01:00
433 changed files with 252 additions and 36 deletions

View File

@@ -6,22 +6,33 @@ volumes:
- name: output
claim:
name: flexvolsmb-drone-output
- name: scratch
claim:
name: flexvolsmb-drone-scratch
steps:
- name: Debugging information
image: bv11-cr01.bessems.eu/library/packer-extended
commands:
- ansible --version
- ovftool --version
- packer --version
- yamllint --version
- name: Build CAPV image(s)
image: k8s.gcr.io/scl-image-builder/cluster-node-image-builder-amd64:v0.1.11
image: bv11-cr01.bessems.eu/library/packer-extended
pull: always
commands:
- |
ls -lash
jq '.password="'"$VSPHERE_PASSWORD"'"' ./packer/ova/vsphere.json > /tmp/vsphere.json && \
mv /tmp/vsphere.json ./packer/ova/vsphere.json
- |
make deps-ova
- |
make build-node-ova-vsphere-ubuntu-2204
- |
mv -fv ./output/**/*.ova /output
environment:
VSPHERE_PASSWORD:
from_secret: vsphere_password
IB_OVFTOOL: true
IB_OVFTOOL_ARGS: --allowExtraConfig
volumes:
- name: output
path: /output

View File

@@ -0,0 +1,113 @@
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
# volumes:
# - /data:/data
# - /output:/output
runs-on: dind
# needs: [semrel_dryrun, linting]
needs: semrel_dryrun
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
uses: addnab/docker-run-action@v3
with:
image: registry.k8s.io/scl-image-builder/cluster-node-image-builder-amd64:v0.1.29
# options: --user root
options: --volumes-from ${{ env.JOB_CONTAINER_NAME }} --rm
run: |
make deps-ova
- name: Build node template
uses: addnab/docker-run-action@v3
with:
image: registry.k8s.io/scl-image-builder/cluster-node-image-builder-amd64:v0.1.29
# options: --user root
options: --volumes-from ${{ env.JOB_CONTAINER_NAME }} --rm
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

@@ -93,7 +93,7 @@ deps-gce:
deps-ova: ## Installs/checks dependencies for OVA builds
deps-ova:
hack/ensure-ansible.sh
hack/ensure-ansible-windows.sh
: hack/ensure-ansible-windows.sh
hack/ensure-packer.sh
hack/ensure-goss.sh
hack/ensure-ovftool.sh

View File

@@ -1,11 +1,11 @@
apiVersion: kubeadm.k8s.io/v1beta2
apiVersion: kubeadm.k8s.io/v1beta3
kind: ClusterConfiguration
imageRepository: {{ kubernetes_container_registry }}
kubernetesVersion: {{ kubernetes_semver }}
dns:
imageRepository: {{ kubernetes_container_registry }}/coredns
---
apiVersion: kubeadm.k8s.io/v1beta2
apiVersion: kubeadm.k8s.io/v1beta3
kind: InitConfiguration
nodeRegistration:
criSocket: {{ containerd_cri_socket }}

View File

@@ -43,3 +43,11 @@
- { src: files/etc/networkd-dispatcher/routable.d/20-chrony.j2, dest: /etc/networkd-dispatcher/routable.d/20-chrony }
- { src: files/etc/networkd-dispatcher/off.d/20-chrony.j2, dest: /etc/networkd-dispatcher/off.d/20-chrony }
- { src: files/etc/networkd-dispatcher/no-carrier.d/20-chrony.j2, dest: /etc/networkd-dispatcher/no-carrier.d/20-chrony }
- name: Create cloud-init datasource config file
copy:
dest: /etc/cloud/ds-identify.cfg
force: true
content: |
datasource: VMware
when: ansible_distribution_version is version('22.04', '>=')

Some files were not shown because too many files have changed in this diff Show More