mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 23:05:49 +00:00
20240625_125814
This commit is contained in:
parent
de3da1f271
commit
f4407c487f
1 changed files with 19 additions and 7 deletions
24
.github/workflows/docker-build.yml
vendored
24
.github/workflows/docker-build.yml
vendored
|
@ -21,12 +21,24 @@ jobs:
|
||||||
ls ${{ github.workspace }}
|
ls ${{ github.workspace }}
|
||||||
echo "🍏 This job's status is ${{ job.status }}."
|
echo "🍏 This job's status is ${{ job.status }}."
|
||||||
|
|
||||||
- uses: mr-smithers-excellent/docker-build-push@v6
|
docker:
|
||||||
name: Build & push Docker image
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
# -
|
||||||
|
# name: Set up QEMU
|
||||||
|
# uses: docker/setup-qemu-action@v3
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
-
|
||||||
|
name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
image: barrymatheney/spring-petclinic:tagname
|
|
||||||
tags: v1, latest
|
|
||||||
# registry: hub.docker.com
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
username: ${{ vars.DOCKER_USERNAME }}
|
username: ${{ vars.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
-
|
||||||
|
name: Build and push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: user/app:latest
|
||||||
|
|
Loading…
Reference in a new issue