From 27914490bed334d272a632b1e55f85382bc7779b Mon Sep 17 00:00:00 2001 From: Walzen665 Date: Fri, 8 Dec 2023 11:11:20 +0000 Subject: [PATCH] Update .gitea/workflows/build.yml --- .gitea/workflows/build.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 21eb9a3..fd1008d 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -6,7 +6,7 @@ on: - main jobs: - build: + build-jar: runs-on: ubuntu-22.04 steps: - name: Checkout @@ -38,7 +38,9 @@ jobs: apt-get update apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin -y - +build-image: + runs-on: ubuntu-22.04 + steps: - name: Build Docker image run: docker build -t walzen665/spring-cicd-test:latest --build-arg="JAR_FILE=target/demo-0.0.1-SNAPSHOT-spring-boot.jar" . @@ -47,10 +49,13 @@ jobs: - name: Log in to Gitea Docker Registry run: echo ${{ secrets.GITEAREGISTRYTOKEN }} | docker login -u ${{ secrets.GITEAREGISTRYUSERNAME }} --password-stdin https://git.walzen665.de - +push-image: + runs-on: ubuntu-22.04 + steps: - name: Push Docker Image to Gitea run: docker push git.walzen665.de/walzen665/spring-cicd-test:latest - +collect-artifacts: + runs-on: ubuntu-22.04 - name: Upload Artifact uses: actions/upload-artifact@v3 with: