Update build.yml
This commit is contained in:
parent
f22733be18
commit
b683ebd132
@ -25,12 +25,15 @@ jobs:
|
||||
run: ./mvnw package spring-boot:repackage
|
||||
|
||||
- name: Build Docker image
|
||||
uses: addnab/docker-run-action@v3
|
||||
run: docker build -t walzen665/spring-cicd-test:latest --build-arg="JAR_FILE=demo-0.0.1-SNAPSHOT-spring-boot.jar" .
|
||||
|
||||
- name: Log in to Gitea Docker Registry
|
||||
uses: addnab/docker-run-action@v3
|
||||
run: echo ${{ secrets.GITEAREGISTRYTOKEN }} | docker login -u ${{ secrets.GITEAREGISTRYUSERNAME }} --password-stdin https://git.walzen665.de
|
||||
|
||||
- name: Push Docker Image to Gitea
|
||||
uses: addnab/docker-run-action@v3
|
||||
run: docker push walzen665/spring-cicd-test:latest
|
||||
|
||||
- name: Upload Artifact
|
||||
|
Loading…
x
Reference in New Issue
Block a user