forked from Fijxu/anubis-patches
please
This commit is contained in:
parent
ebb2076c5c
commit
14a4f08b56
1 changed files with 13 additions and 28 deletions
41
.github/workflows/docker.yml
vendored
41
.github/workflows/docker.yml
vendored
|
@ -36,41 +36,25 @@ jobs:
|
||||||
git config --global user.name "Your Name"
|
git config --global user.name "Your Name"
|
||||||
git am ../patches/*.patch
|
git am ../patches/*.patch
|
||||||
|
|
||||||
- name: Install Homebrew
|
- name: Install required package
|
||||||
run: |
|
run: |
|
||||||
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
sudo apt-get update -y
|
||||||
echo >> /root/.bashrc
|
sudo apt-get install -y --no-install-recommends brotli esbuild
|
||||||
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /root/.bashrc
|
|
||||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
|
||||||
|
|
||||||
- name: Set up Homebrew
|
- name: Setup Go
|
||||||
uses: https://github.com/Homebrew/actions/setup-homebrew@master
|
uses: https://github.com/actions/setup-go@v5
|
||||||
|
|
||||||
- name: Setup Homebrew cellar cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
with:
|
||||||
path: |
|
go-version: '>=1.24.0'
|
||||||
/home/linuxbrew/.linuxbrew/Cellar
|
|
||||||
/home/linuxbrew/.linuxbrew/bin
|
|
||||||
/home/linuxbrew/.linuxbrew/etc
|
|
||||||
/home/linuxbrew/.linuxbrew/include
|
|
||||||
/home/linuxbrew/.linuxbrew/lib
|
|
||||||
/home/linuxbrew/.linuxbrew/opt
|
|
||||||
/home/linuxbrew/.linuxbrew/sbin
|
|
||||||
/home/linuxbrew/.linuxbrew/share
|
|
||||||
/home/linuxbrew/.linuxbrew/var
|
|
||||||
key: ${{ runner.os }}-go-homebrew-cellar-${{ hashFiles('go.sum') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-go-homebrew-cellar-
|
|
||||||
|
|
||||||
- name: Install Brew dependencies
|
- name: Setup Ko
|
||||||
run: |
|
run: |
|
||||||
brew bundle
|
curl -sSfL "https://github.com/ko-build/ko/releases/download/v0.17.1/ko_0.17.1_Linux_x86_64.tar.gz" > ko.tar.gz
|
||||||
|
sudo tar xzf ko.tar.gz -C /usr/local/bin ko
|
||||||
|
|
||||||
- name: Log into registry
|
- name: Log into registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: git.nadeko.net
|
||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
password: ${{ secrets.PASSWORD }}
|
password: ${{ secrets.PASSWORD }}
|
||||||
|
|
||||||
|
@ -78,7 +62,7 @@ jobs:
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: git.nadeko.net/fijxu/anubis-modified
|
||||||
tags: |
|
tags: |
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
|
@ -89,10 +73,11 @@ jobs:
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
id: build
|
id: build
|
||||||
run: |
|
run: |
|
||||||
|
cd ./anubis
|
||||||
npm ci
|
npm ci
|
||||||
npm run container
|
npm run container
|
||||||
env:
|
env:
|
||||||
DOCKER_REPO: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
DOCKER_REPO: git.nadeko.net/fijxu/anubis-modified
|
||||||
SLOG_LEVEL: debug
|
SLOG_LEVEL: debug
|
||||||
|
|
||||||
# I don't need this.
|
# I don't need this.
|
||||||
|
|
Loading…
Add table
Reference in a new issue