-
Notifications
You must be signed in to change notification settings - Fork 27
44 lines (38 loc) · 1.16 KB
/
Push_PixelGen.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Update PixelGen
on:
workflow_dispatch:
schedule:
- cron: '24 2 * * *'
jobs:
push_gentoo_to_hub:
name: Push Midori AI's PixelGen (Gentoo Linux) to Docker Hub
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Log in to Docker Hub
uses: docker/login-action@master
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
logout: false
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@master
with:
images: lunamidori5/pixelgen
tags: |
type=raw,value=latest
type=raw,value=quartz
- name: Build and push PixelGen Docker Image
uses: docker/build-push-action@master
with:
context: ./Cluster-OS/pixelgen_os/
file: ./Cluster-OS/pixelgen_os/gentoo_dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Clean up Docker Cache
run: |
docker image prune -f