Add a build step and bump the image
All checks were successful
Build and deploy / deploy (push) Successful in 1m39s

This commit is contained in:
2025-01-24 17:47:09 +00:00
parent a438d05fe9
commit 93e76876dd
3 changed files with 40 additions and 9 deletions

View File

@@ -0,0 +1,38 @@
name: Build and deploy
run-name: Build and deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
github-server-url: 'https://gitea.home.joemonk.co.uk'
- name: Set up docker
run: 'curl -fsSL https://get.docker.com | sh'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to private registry
uses: docker/login-action@v3
with:
registry: 'gitea.home.joemonk.co.uk/${{ github.repository }}'
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
gitea.home.joemonk.co.uk/${{ gitea.repository }}:latest
gitea.home.joemonk.co.uk/${{ gitea.repository }}:${{ gitea.sha }}
gitea.home.joemonk.co.uk/${{ gitea.repository }}:${{ gitea.run_number }}

View File

@@ -1,8 +1,8 @@
FROM quay.io/kairos/debian:bookworm-standard-amd64-generic-v3.1.2-k3sv1.30.4-k3s1 FROM quay.io/kairos/debian:bookworm-standard-amd64-generic-v3.2.4-k3sv1.31.3-k3s1
RUN apt update && apt -y install \ RUN apt update && apt -y install \
samba \ samba \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN export VERSION="my-version" RUN export VERSION="kairos-custom"
RUN envsubst '${VERSION}' </etc/os-release RUN envsubst '${VERSION}' </etc/os-release

View File

@@ -5,10 +5,3 @@ Just an image to insert additional services into kairos
Currently: Currently:
- Samba - Samba
## Building
Currently just manual building as it'll be infrequent
`docker build -t gitea.home.joemonk.co.uk/joe/kairos-custom:TAG_NUMBER .`
`docker push gitea.home.joemonk.co.uk/joe/kairos-custom:TAG_NUMBER`