diff --git a/.gitea/workflows/build-push.yml b/.gitea/workflows/build-push.yml new file mode 100644 index 0000000..7ac4b44 --- /dev/null +++ b/.gitea/workflows/build-push.yml @@ -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 + diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 41fcb8c..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -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