forked from p1atdev/LECO
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.18 KB
/
container.yml
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
45
46
47
name: Deploy Images to GHCR
on:
push:
tags:
- v*
workflow_dispatch:
permissions:
packages: write
jobs:
push-container-image:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
- uses: actions/checkout@main
- name: Install Nix
uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build container image
run: nix build .#sdxlContainer
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: 'Push Container Image'
run: |
nix store gc
docker load < result
docker tag LECO-sdxl:0.1.0 ghcr.io/capslock/LECO-sdxl:latest
docker push ghcr.io/capslock/LECO-sdxl:latest