switch to actions
This commit is contained in:
parent
299cb11732
commit
5446cef8aa
23
.gitea/workflows/build.yml
Normal file
23
.gitea/workflows/build.yml
Normal 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"
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user