Update build.yml

This commit is contained in:
Max W 2023-12-06 14:48:21 +01:00
parent a7f4dcf999
commit 422d366af5

View File

@ -26,12 +26,12 @@ jobs:
- name: Initialize Docker runtime - name: Initialize Docker runtime
run: | run: |
sudo apt-get update apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io apt-get install -y docker-ce docker-ce-cli containerd.io
- name: Build Docker image - name: Build Docker image
run: docker build -t walzen665/spring-cicd-test:latest --build-arg="JAR_FILE=demo-0.0.1-SNAPSHOT-spring-boot.jar" . run: docker build -t walzen665/spring-cicd-test:latest --build-arg="JAR_FILE=demo-0.0.1-SNAPSHOT-spring-boot.jar" .