Update build.yml

This commit is contained in:
Max W. 2024-03-03 16:07:21 +01:00
parent c2c0d97585
commit 049ce241e8

View File

@ -64,6 +64,7 @@ jobs:
fi
- name: Initialize Docker runtime
if: env.SKIP_SUBSEQUENT_STEPS != 'true'
run: |
apt-get update
apt-get install ca-certificates curl gnupg lsb-release -y
@ -78,21 +79,26 @@ jobs:
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin -y
- name: Download Artifact
if: env.SKIP_SUBSEQUENT_STEPS != 'true'
uses: actions/download-artifact@v3
with:
name: jar-artifact
path: build/libs
- name: Build Docker Image
if: env.SKIP_SUBSEQUENT_STEPS != 'true'
run: docker build . -t walzen665/sharepulse:$VERSION
- name: Tag Docker image
if: env.SKIP_SUBSEQUENT_STEPS != 'true'
run: docker tag walzen665/sharepulse:latest git.walzen665.de/walzen665/sharepulse:$VERSION
- name: Log in to Gitea Docker Registry
if: env.SKIP_SUBSEQUENT_STEPS != 'true'
run: echo ${{ secrets.GITEAREGISTRYTOKEN }} | docker login -u ${{ secrets.GITEAREGISTRYUSERNAME }} --password-stdin https://git.walzen665.de
- name: Push Docker Image to Gitea
if: env.SKIP_SUBSEQUENT_STEPS != 'true'
run: docker push git.walzen665.de/walzen665/sharepulse:$VERSION