added workflow
This commit is contained in:
parent
eb6850c3ee
commit
c47a49414a
29
.gitea/workflows/daily-build.yml
Normal file
29
.gitea/workflows/daily-build.yml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Daily Build Silverblue Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: Login to Gitea registry
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.GITEA_USERNAME }}
|
||||||
|
password: ${{ secrets.GITEA_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build Image
|
||||||
|
run: |
|
||||||
|
docker build -t git.joshua-se.com/joshuase96/silverblue-custom:latest .
|
||||||
|
|
||||||
|
- name: Push Image
|
||||||
|
run: |
|
||||||
|
docker push git.joshua-se.com/joshuase96/silverblue-custom:latest
|
Loading…
Reference in New Issue
Block a user