Compare commits

...

4 Commits

Author SHA1 Message Date
unkinben 29a4d9b0d0 fix: enable fetch-depth for code_checkout
Build / build (pull_request) Failing after 3s
2025-01-25 16:58:56 +11:00
unkinben 50626df505 feat: remove incus from builds file
- this will prevent incus images from building
2025-01-25 16:54:15 +11:00
unkinben 088e97b1d3 feat: add build workflows
Build / build (pull_request) Failing after 31s
2025-01-25 16:48:33 +11:00
unkinben c6e1975385 fix: dont build incus images
- pending physical build nodes before enabling deployment of incus images
2025-01-25 16:41:05 +11:00
6 changed files with 63 additions and 4 deletions
+27
View File
@@ -0,0 +1,27 @@
name: Build
on:
pull_request:
jobs:
build:
runs-on: almalinux-8
container:
image: git.query.consul/unkin/almalinux9-actionsdind:latest
options: --privileged
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Show changed files
run: |
git diff --name-only master
- name: Run Packer Builds
env:
VAULT_ROLEID: ${{ secrets.PACKER_BUILDER_VAULT_ROLEID }}
run: |
make
+34
View File
@@ -0,0 +1,34 @@
name: Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: almalinux-8
container:
image: git.query.consul/unkin/almalinux8:latest
options: --privileged
steps:
- name: Set up environment
run: |
dnf install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
dnf module enable -y nodejs:20
dnf install -y docker-ce-cli make bash git nodejs
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run Packer Builds
env:
VAULT_ROLEID: ${{ secrets.PACKER_BUILDER_VAULT_ROLEID }}
DOCKER_USERNAME: ${{ secrets.UPLOAD_USER }}
DOCKER_PASSWORD: ${{ secrets.UPLOAD_PASS }}
run: |
make
-1
View File
@@ -1,2 +1 @@
docker docker
incus
@@ -1,7 +1,7 @@
# almalinux/8.10/base # almalinux/8.10/base
deploy_files_from_image = true deploy_files_from_image = true
deploy_files_from_common = true deploy_files_from_common = true
use_incus = true use_incus = false
packages = [ packages = [
"git", "git",
"jq", "jq",
-1
View File
@@ -1,2 +1 @@
docker docker
incus
@@ -1,7 +1,7 @@
# almalinux/9.5/base # almalinux/9.5/base
deploy_files_from_image = true deploy_files_from_image = true
deploy_files_from_common = true deploy_files_from_common = true
use_incus = true use_incus = false
packages = [ packages = [
"git", "git",
"jq", "jq",