Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
683358f3c1
commit
6b8b5d6a60
2 changed files with 26 additions and 7 deletions
26
.gitea/workflows/build-push.yml
Normal file
26
.gitea/workflows/build-push.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
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.baalajimaestro.me
|
||||||
|
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.baalajimaestro.me/baalajimaestro/obsolute-paste:latest
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
docker-build:
|
|
||||||
stage: build
|
|
||||||
before_script:
|
|
||||||
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" registry.baalajimaestro.me --password-stdin
|
|
||||||
script:
|
|
||||||
- DOCKER_BUILDKIT=1 docker build . -t registry.baalajimaestro.me/baalajimaestro/obsolute-paste:latest
|
|
||||||
- docker push registry.baalajimaestro.me/baalajimaestro/obsolute-paste:latest
|
|
Loading…
Reference in a new issue