This reverts commit 0a0900477a
.
Signed-off-by: baalajimaestro <baalajimaestro@ptr.moe>
This commit is contained in:
parent
fdf8a791da
commit
177d8100ef
2 changed files with 29 additions and 13 deletions
29
.forgejo/workflows/build-push.yml
Normal file
29
.forgejo/workflows/build-push.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Building:
|
||||||
|
runs-on: slave
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.ptr.moe
|
||||||
|
username: ${{ gitea.repository_owner }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Startup DIND
|
||||||
|
run: /dockerd-entrypoint.sh dockerd &
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Build & Push
|
||||||
|
uses: docker/build-push-action@master
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
context: .
|
||||||
|
platforms: linux/amd64
|
||||||
|
tags: git.ptr.moe/baalajimaestro/obsolute-paste:latest
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
when:
|
|
||||||
- event: push
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Build & Push
|
|
||||||
image: git.ptr.moe/baalajimaestro/build-runner
|
|
||||||
commands:
|
|
||||||
- /dockerd-entrypoint.sh dockerd 2&> /dev/null &
|
|
||||||
- echo $DOCKER_PASSWORD | docker login git.ptr.moe --username ${CI_REPO_OWNER} --password-stdin
|
|
||||||
- docker build . -t git.ptr.moe/baalajimaestro/obsolute-paste:latest
|
|
||||||
- docker push git.ptr.moe/baalajimaestro/obsolute-paste:latest
|
|
||||||
secrets: [ docker_password ]
|
|
||||||
privileged: true
|
|
Loading…
Reference in a new issue