remove gitignoe
Some checks failed
Build And Publish Docker / build-latest (push) Has been cancelled

This commit is contained in:
brooke 2024-07-16 11:03:00 -04:00
parent 468f8755ea
commit 196d0e5474
2 changed files with 95 additions and 2 deletions

95
.github/workflows/build.yaml vendored Normal file
View file

@ -0,0 +1,95 @@
name: Build And Publish Docker
on:
push:
branches:
- "master"
jobs:
# build:
# runs-on: debian
# container:
# image: node:22-bookworm
# strategy:
# matrix:
# hugo-version:
# [
# "0.124.1",
# "0.125.7",
# "0.126.3",
# "0.128.2"
# ]
# node-version: ["20", "21", "22"]
# steps:
# - uses: actions/checkout@v3
# - name: Install deps
# run: curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
# - name: Set up QEMU
# uses: docker/setup-qemu-action@master
# with:
# platforms: all
# - name: Set up Docker Buildx
# id: buildx
# uses: docker/setup-buildx-action@master
# - name: Login to Self-Hosted Registry
# uses: docker/login-action@v2
# with:
# registry: codeberg.org
# username: ${{ secrets.REGISTRY_USER }}
# password: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
# - name: Build and Push Extended Version
# uses: docker/build-push-action@v4
# with:
# builder: ${{ steps.buildx.outputs.name }}
# context: ./
# file: ./Dockerfile
# platforms: linux/amd64
# push: true
# build-args: |
# HUGO_VERSION=${{ matrix.hugo-version }}
# NODE_VERSION=${{ matrix.node-version }}
# tags: |
# "codeberg.org/mycosystems/hugo-ci:${{ matrix.hugo-version }}-${{ matrix.node-version }}"
build-latest:
runs-on: debian
container:
image: node:22-bookworm
steps:
- uses: actions/checkout@v3
- name: Install deps
run: apt update -y && apt install -y curl nodejs && curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
- name: Login to Self-Hosted Registry
uses: docker/login-action@v2
with:
registry: codeberg.org
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Build and Push Extended Version
uses: docker/build-push-action@v4
with:
builder: ${{ steps.buildx.outputs.name }}
context: ./
file: ./Dockerfile
platforms: linux/amd64
push: true
build-args: |
HUGO_VERSION=0.128.2
NODE_VERSION=22.0.0
tags: |
codeberg.org/mycosystems/hugo-ci:latest

2
.gitignore vendored
View file

@ -1,2 +0,0 @@
.secrets
.github