Potential dirty fix for scheduled builds
This commit is contained in:
parent
bacee5fdf7
commit
2317f6fee6
1 changed files with 8 additions and 7 deletions
|
@ -18,11 +18,12 @@ jobs:
|
||||||
uses: https://cremin.dev/actions/podman-login@v1
|
uses: https://cremin.dev/actions/podman-login@v1
|
||||||
with:
|
with:
|
||||||
registry: cremin.dev
|
registry: cremin.dev
|
||||||
username: ${{ github.actor }}
|
username: ${{ env.FORGEJO_REGISTRY_USER }}
|
||||||
password: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
|
password: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: https://cremin.dev/actions/checkout@v4
|
uses: https://cremin.dev/actions/checkout@v4
|
||||||
- name: Check if workstation was changed
|
- name: Check if workstation was changed
|
||||||
|
if: ${{ github.event_name != 'schedule' }}
|
||||||
uses: https://cremin.dev/actions/paths-filter@v3
|
uses: https://cremin.dev/actions/paths-filter@v3
|
||||||
id: changes
|
id: changes
|
||||||
with:
|
with:
|
||||||
|
@ -30,7 +31,7 @@ jobs:
|
||||||
src:
|
src:
|
||||||
- 'workstation/**'
|
- 'workstation/**'
|
||||||
- name: Build image
|
- name: Build image
|
||||||
if: steps.changes.outputs.src == 'true'
|
if: github.event_name == 'schedule' || steps.changes.outputs.src == 'true'
|
||||||
uses: https://cremin.dev/actions/buildah-build@v2
|
uses: https://cremin.dev/actions/buildah-build@v2
|
||||||
with:
|
with:
|
||||||
containerfiles: ./workstation/Containerfile
|
containerfiles: ./workstation/Containerfile
|
||||||
|
@ -40,7 +41,7 @@ jobs:
|
||||||
image: cremin.dev/jonathan/ublue-silverblue-main
|
image: cremin.dev/jonathan/ublue-silverblue-main
|
||||||
tags: 42 latest 42-${{ env.NOW }}
|
tags: 42 latest 42-${{ env.NOW }}
|
||||||
- name: Push image
|
- name: Push image
|
||||||
if: steps.changes.outputs.src == 'true'
|
if: github.event_name == 'schedule' || steps.changes.outputs.src == 'true'
|
||||||
uses: https://cremin.dev/actions/push-to-registry@v2
|
uses: https://cremin.dev/actions/push-to-registry@v2
|
||||||
with:
|
with:
|
||||||
registry: cremin.dev/jonathan
|
registry: cremin.dev/jonathan
|
||||||
|
@ -59,11 +60,12 @@ jobs:
|
||||||
uses: https://cremin.dev/actions/podman-login@v1
|
uses: https://cremin.dev/actions/podman-login@v1
|
||||||
with:
|
with:
|
||||||
registry: cremin.dev
|
registry: cremin.dev
|
||||||
username: ${{ github.actor }}
|
username: ${{ env.FORGEJO_REGISTRY_USER }}
|
||||||
password: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
|
password: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: https://cremin.dev/actions/checkout@v4
|
uses: https://cremin.dev/actions/checkout@v4
|
||||||
- name: Check if workstation-nvidia was changed
|
- name: Check if workstation-nvidia was changed
|
||||||
|
if: ${{ github.event_name != 'schedule' }}
|
||||||
uses: https://cremin.dev/actions/paths-filter@v3
|
uses: https://cremin.dev/actions/paths-filter@v3
|
||||||
id: changes
|
id: changes
|
||||||
with:
|
with:
|
||||||
|
@ -71,7 +73,7 @@ jobs:
|
||||||
src:
|
src:
|
||||||
- 'workstation-nvidia/**'
|
- 'workstation-nvidia/**'
|
||||||
- name: Build image
|
- name: Build image
|
||||||
if: steps.changes.outputs.src == 'true'
|
if: github.event_name == 'schedule' || steps.changes.outputs.src == 'true'
|
||||||
uses: https://cremin.dev/actions/buildah-build@v2
|
uses: https://cremin.dev/actions/buildah-build@v2
|
||||||
with:
|
with:
|
||||||
containerfiles: ./workstation-nvidia/Containerfile
|
containerfiles: ./workstation-nvidia/Containerfile
|
||||||
|
@ -81,7 +83,7 @@ jobs:
|
||||||
image: cremin.dev/jonathan/ublue-silverblue-nvidia
|
image: cremin.dev/jonathan/ublue-silverblue-nvidia
|
||||||
tags: 42 latest 42-${{ env.NOW }}
|
tags: 42 latest 42-${{ env.NOW }}
|
||||||
- name: Push image
|
- name: Push image
|
||||||
if: steps.changes.outputs.src == 'true'
|
if: github.event_name == 'schedule' || steps.changes.outputs.src == 'true'
|
||||||
uses: https://cremin.dev/actions/push-to-registry@v2
|
uses: https://cremin.dev/actions/push-to-registry@v2
|
||||||
with:
|
with:
|
||||||
registry: cremin.dev/jonathan
|
registry: cremin.dev/jonathan
|
||||||
|
@ -89,4 +91,3 @@ jobs:
|
||||||
password: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
|
password: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
|
||||||
image: ublue-silverblue-nvidia
|
image: ublue-silverblue-nvidia
|
||||||
tags: 42 latest 42-${{ env.NOW }}
|
tags: 42 latest 42-${{ env.NOW }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue