From 276a3d572f7f649562b3221e13f9805fd88a0dba Mon Sep 17 00:00:00 2001 From: danthe42 Date: Thu, 6 Nov 2025 21:27:03 +0100 Subject: [PATCH] 13 --- .gitea/workflows/demo.yaml | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 58161e2..392028a 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -3,24 +3,11 @@ run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 on: [push] jobs: - docker: - runs-on: ubuntu-22.04 - container: docker:latest + build: + runs-on: docker steps: - - name: Apt - run: | - ps ax - apt-get update - apt-get install node - - name: PSlist - run: ps ax - - name: Checkout - uses: actions/checkout@v4 - - name: Docker login - run: docker login -u danthe -p Secret666 gitea.goroid.io - - name: Build docker container - run: docker build -t gitea.goroid.io/danthe/test:latest . - - name: Push docker container - run: docker push gitea.goroid.io/danthe/test:latest - - name: Cleanup old images - run: docker image prune -f + - uses: actions/checkout@v4 + - name: Login + run: echo ${{ secrets.DOCKER_PASS }} | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin + - name: Build and Push + run: docker buildx build . -t myrepo/myimage:${{ gitea.sha }} --push