-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (44 loc) · 1.2 KB
/
main.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: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
env:
IMAGE: ghcr.io/${{ github.repository_owner }}/dotfiles
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ env.IMAGE }}:${{ github.sha }}
- uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ env.IMAGE }}:laetst
if: github.ref == 'refs/heads/main'
format:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: lua
cmd: |
stylua --check -g '*.lua' -- config/{.config,.hammerspoon}
- name: sh
cmd: |
shfmt -i 2 -d bin config/{.bin,.config/zsh} install
name: format-${{ matrix.name }}
steps:
- uses: actions/checkout@v4
- uses: aquaproj/[email protected]
with:
aqua_version: v2.30.0
- run: ${{ matrix.cmd }}