@@ -1,27 +1,27 @@
|
|||||||
name: Build and publish
|
# name: Build and publish
|
||||||
run-name: Build docker image and publish to registry
|
# run-name: Build docker image and publish to registry
|
||||||
on: [push]
|
# on: [push]
|
||||||
|
|
||||||
jobs:
|
# jobs:
|
||||||
build:
|
# build:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
container:
|
# container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
# image: catthehacker/ubuntu:act-latest
|
||||||
steps:
|
# steps:
|
||||||
- uses: https://github.com/actions/checkout@v4
|
# - uses: https://github.com/actions/checkout@v4
|
||||||
- name: Use Node.js
|
# - name: Use Node.js
|
||||||
uses: https://github.com/actions/setup-node@v3
|
# uses: https://github.com/actions/setup-node@v3
|
||||||
with:
|
# with:
|
||||||
node-version: '20.18'
|
# node-version: '20.18'
|
||||||
- run: docker compose build
|
# - run: docker compose build
|
||||||
env:
|
# env:
|
||||||
GHOSTFOLIO_SECURITY_TOKEN: ${{ secrets.GHOSTFOLIO_SECURITY_TOKEN }}
|
# GHOSTFOLIO_SECURITY_TOKEN: ${{ secrets.GHOSTFOLIO_SECURITY_TOKEN }}
|
||||||
GHOSTFOLIO_HOST: ${{ secrets.GHOSTFOLIO_HOST }}
|
# GHOSTFOLIO_HOST: ${{ secrets.GHOSTFOLIO_HOST }}
|
||||||
- name: Login to the Container registry
|
# - name: Login to the Container registry
|
||||||
uses: docker/login-action@v2
|
# uses: docker/login-action@v2
|
||||||
with:
|
# with:
|
||||||
registry: gitea.lino.cooking
|
# registry: gitea.lino.cooking
|
||||||
username: lino-authelia
|
# username: lino-authelia
|
||||||
password: ${{ secrets.REGISTRY_PASS }}
|
# password: ${{ secrets.REGISTRY_PASS }}
|
||||||
- name: Push to registry
|
# - name: Push to registry
|
||||||
run: docker compose push
|
# run: docker compose push
|
||||||
Reference in New Issue
Block a user