switch to actions

This commit is contained in:
stryan 2025-01-20 20:58:32 -05:00
parent 299cb11732
commit 5446cef8aa
2 changed files with 23 additions and 24 deletions

View File

@ -0,0 +1,23 @@
name: build
on:
push:
branches: ["master"]
jobs:
# Build job
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to registry
uses: docker/login-action@v3
with:
registry: git.saintnet.tech
username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
env:
IMAGE_NAME: saintnet_stickers
REGISTRY: git.saintnet.tech
REPO_OWNER: stryan
run: "docker build -o type=docker -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest -f Containerfile .\ndocker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest \n"

View File

@ -1,24 +0,0 @@
steps:
- name: Generate config file
image: bash
environment:
CONFIGJSON:
from_secret: config_json
commands:
- ./generate.sh
- name: build-container
image: woodpeckerci/plugin-docker-buildx
settings:
repo: git.saintnet.tech/stryan/saintnet_stickers
registry: git.saintnet.tech
password:
from_secret: build_pass
username:
from_secret: build_username
dockerfile: Containerfile
tags: latest
configjson:
from_secret: config_json
when:
- branch: 'master'
event: push