Switch to gitea actions
All checks were successful
/ Building (push) Successful in 3m25s

Signed-off-by: baalajimaestro <baalajimaestro@ptr.moe>
This commit is contained in:
baalajimaestro 2024-09-08 11:22:19 +05:30
parent fa5df79743
commit d30f0f01c5
Signed by: baalajimaestro
GPG key ID: B5B69626E67EE82A
2 changed files with 28 additions and 13 deletions

View file

@ -0,0 +1,28 @@
on:
push:
jobs:
Building:
runs-on: slave
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Startup DIND
run: /dockerd-entrypoint.sh dockerd &
shell: bash
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: git.ptr.moe
username: ${{ gitea.repository_owner }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build & Push
uses: docker/build-push-action@master
with:
push: true
context: .
platforms: linux/amd64
tags: git.ptr.moe/baalajimaestro/nim-censor-bot:latest

View file

@ -1,13 +0,0 @@
when:
- event: push
steps:
- name: Build & Push
image: git.baalajimaestro.me/baalajimaestro/build-runner
commands:
- /dockerd-entrypoint.sh dockerd 2&> /dev/null &
- echo $DOCKER_PASSWORD | docker login git.baalajimaestro.me --username ${CI_REPO_OWNER} --password-stdin
- docker build . -t git.baalajimaestro.me/baalajimaestro/nim-censor-bot:latest
- docker push git.baalajimaestro.me/baalajimaestro/nim-censor-bot:latest
secrets: [ docker_password ]
privileged: true