Add a build step and bump the image
All checks were successful
Build and deploy / deploy (push) Successful in 1m39s
All checks were successful
Build and deploy / deploy (push) Successful in 1m39s
This commit is contained in:
38
.gitea/workflows/deploy.yaml
Normal file
38
.gitea/workflows/deploy.yaml
Normal 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 }}
|
||||
@@ -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 \
|
||||
samba \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN export VERSION="my-version"
|
||||
RUN export VERSION="kairos-custom"
|
||||
RUN envsubst '${VERSION}' </etc/os-release
|
||||
|
||||
@@ -5,10 +5,3 @@ Just an image to insert additional services into kairos
|
||||
Currently:
|
||||
|
||||
- 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`
|
||||
|
||||
Reference in New Issue
Block a user