Update build.yml
This commit is contained in:
parent
c2c0d97585
commit
049ce241e8
@ -64,6 +64,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Initialize Docker runtime
|
- name: Initialize Docker runtime
|
||||||
|
if: env.SKIP_SUBSEQUENT_STEPS != 'true'
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install ca-certificates curl gnupg lsb-release -y
|
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
|
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin -y
|
||||||
|
|
||||||
- name: Download Artifact
|
- name: Download Artifact
|
||||||
|
if: env.SKIP_SUBSEQUENT_STEPS != 'true'
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: jar-artifact
|
name: jar-artifact
|
||||||
path: build/libs
|
path: build/libs
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
|
if: env.SKIP_SUBSEQUENT_STEPS != 'true'
|
||||||
run: docker build . -t walzen665/sharepulse:$VERSION
|
run: docker build . -t walzen665/sharepulse:$VERSION
|
||||||
|
|
||||||
- name: Tag Docker image
|
- name: Tag Docker image
|
||||||
|
if: env.SKIP_SUBSEQUENT_STEPS != 'true'
|
||||||
run: docker tag walzen665/sharepulse:latest git.walzen665.de/walzen665/sharepulse:$VERSION
|
run: docker tag walzen665/sharepulse:latest git.walzen665.de/walzen665/sharepulse:$VERSION
|
||||||
|
|
||||||
- name: Log in to Gitea Docker Registry
|
- 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
|
run: echo ${{ secrets.GITEAREGISTRYTOKEN }} | docker login -u ${{ secrets.GITEAREGISTRYUSERNAME }} --password-stdin https://git.walzen665.de
|
||||||
|
|
||||||
- name: Push Docker Image to Gitea
|
- name: Push Docker Image to Gitea
|
||||||
|
if: env.SKIP_SUBSEQUENT_STEPS != 'true'
|
||||||
run: docker push git.walzen665.de/walzen665/sharepulse:$VERSION
|
run: docker push git.walzen665.de/walzen665/sharepulse:$VERSION
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user