mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
20240822_092703
This commit is contained in:
parent
fd4c4bb18c
commit
0fb23c48bd
1 changed files with 15 additions and 20 deletions
21
.github/workflows/docker-build.yml
vendored
21
.github/workflows/docker-build.yml
vendored
|
@ -4,6 +4,8 @@ on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
Explore-GitHub-Actions:
|
Explore-GitHub-Actions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ubuntu:latest # You can specify any Docker image that fits your needs
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -23,15 +25,14 @@ jobs:
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: docker:latest # Running Docker commands inside Docker container (Docker-in-Docker)
|
||||||
|
options: --privileged # Required for Docker-in-Docker setup
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# -
|
- name: Set up Docker Buildx
|
||||||
# name: Set up QEMU
|
|
||||||
# uses: docker/setup-qemu-action@v3
|
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
-
|
- name: Login to Docker Hub
|
||||||
name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ vars.DOCKER_USERNAME }}
|
username: ${{ vars.DOCKER_USERNAME }}
|
||||||
|
@ -40,7 +41,6 @@ jobs:
|
||||||
name: Build and push
|
name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
# image: barrymatheney/spring-petclinic
|
|
||||||
push: true
|
push: true
|
||||||
cache-from: type=registry,ref=${{ vars.DOCKER_USERNAME }}/${{ vars.DOCKER_IMAGE_NAME }}:latest
|
cache-from: type=registry,ref=${{ vars.DOCKER_USERNAME }}/${{ vars.DOCKER_IMAGE_NAME }}:latest
|
||||||
cache-to: type=inline
|
cache-to: type=inline
|
||||||
|
@ -49,8 +49,3 @@ jobs:
|
||||||
${{ vars.DOCKER_USERNAME }}/${{ vars.DOCKER_IMAGE_NAME }}:${{ github.sha }},
|
${{ vars.DOCKER_USERNAME }}/${{ vars.DOCKER_IMAGE_NAME }}:${{ github.sha }},
|
||||||
${{ vars.DOCKER_USERNAME }}/${{ vars.DOCKER_IMAGE_NAME }}:${{ github.run_id }},
|
${{ vars.DOCKER_USERNAME }}/${{ vars.DOCKER_IMAGE_NAME }}:${{ github.run_id }},
|
||||||
${{ vars.DOCKER_USERNAME }}/${{ vars.DOCKER_IMAGE_NAME }}:${{ github.ref_name }}
|
${{ vars.DOCKER_USERNAME }}/${{ vars.DOCKER_IMAGE_NAME }}:${{ github.ref_name }}
|
||||||
|
|
||||||
# tags: ${{ vars.DOCKER_USERNAME }}/${{ vars.DOCKER_IMAGE_NAME }}:latest
|
|
||||||
|
|
||||||
# tags: barrymatheney/spring-petclinic:${{ github.sha }}
|
|
||||||
# , ${{ github.run_id }}, ${{ github.ref_name }}
|
|
Loading…
Reference in a new issue