2025-01-03 08:42:34 +01:00
|
|
|
name: Build Silverblue Image
|
2025-01-03 08:01:28 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
2025-01-03 08:04:36 +01:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2025-01-03 08:01:28 +01:00
|
|
|
|
|
|
|
jobs:
|
2025-01-03 08:42:34 +01:00
|
|
|
build-push:
|
2025-01-03 09:12:02 +01:00
|
|
|
runs-on: ubuntu-latest
|
2025-01-03 08:01:28 +01:00
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2025-01-03 09:12:02 +01:00
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
|
2025-01-03 08:01:28 +01:00
|
|
|
- name: Login to Gitea registry
|
2025-01-03 09:12:02 +01:00
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
registry: git.joshua-se.com
|
|
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
2025-01-03 08:01:28 +01:00
|
|
|
|
|
|
|
- name: Build Image
|
|
|
|
run: |
|
2025-01-03 09:12:02 +01:00
|
|
|
docker build -f Containerfile -t git.joshua-se.com/joshuase96/silverblue-custom:latest .
|
2025-01-03 08:01:28 +01:00
|
|
|
|
|
|
|
- name: Push Image
|
|
|
|
run: |
|
2025-01-03 09:12:02 +01:00
|
|
|
docker push git.joshua-se.com/joshuase96/silverblue-custom:latest
|