48 lines
No EOL
1.4 KiB
YAML
48 lines
No EOL
1.4 KiB
YAML
name: Build
|
|
on: [workflow_dispatch]
|
|
|
|
jobs:
|
|
Deploy:
|
|
runs-on: docker
|
|
container:
|
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
|
|
|
steps:
|
|
- name: Install LFS
|
|
run: |
|
|
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
|
apt-get update
|
|
apt-get install -y git-lfs
|
|
git lfs install
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
lfs: 'true'
|
|
|
|
- name: Docker install
|
|
uses: docker/setup-docker-action@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: https://github.com/docker/setup-buildx-action@v3
|
|
|
|
- name: Docker Login
|
|
uses: https://github.com/docker/login-action@v3
|
|
with:
|
|
registry: git.riksolo.com
|
|
username: riksolo
|
|
password: ${{secrets.CONTAINER_REGISTRY_TOKEN}}
|
|
|
|
- name: Build and push main
|
|
uses: https://github.com/docker/build-push-action@v6
|
|
with:
|
|
push: true
|
|
tags: git.riksolo.com/riksolo/eleventy-riksolo-com:latest , git.riksolo.com/riksolo/eleventy-riksolo-com:${{github.sha}}
|
|
|
|
- name: Build and push RBLicht
|
|
uses: https://github.com/docker/build-push-action@v6
|
|
with:
|
|
push: true
|
|
build-args:
|
|
SITE=rblicht
|
|
tags: git.riksolo.com/riksolo/eleventy-riksolo-com:latest-rblicht , git.riksolo.com/riksolo/eleventy-riksolo-com:${{github.sha}}-rblicht |