mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
20240625_123244
This commit is contained in:
parent
6ac8535ef0
commit
a659129c47
1 changed files with 32 additions and 0 deletions
32
.github/workflows/build_and_push.yaml
vendored
Normal file
32
.github/workflows/build_and_push.yaml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
name: GitHub Actions Demo
|
||||
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
|
||||
on: [push]
|
||||
jobs:
|
||||
Explore-GitHub-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
name: Check out code
|
||||
- name: Script Set 1
|
||||
run: |
|
||||
echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
||||
echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
|
||||
echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
|
||||
echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
|
||||
echo "🖥️ The workflow is now ready to test your code on the runner."
|
||||
printenv | sort
|
||||
- name: Script Set 2 - List files in the repository
|
||||
run: |
|
||||
ls ${{ github.workspace }}
|
||||
echo "🍏 This job's status is ${{ job.status }}."
|
||||
|
||||
- uses: mr-smithers-excellent/docker-build-push@v6
|
||||
name: Build & push Docker image
|
||||
with:
|
||||
image: barrymatheney/spring-petclinic:tagname
|
||||
tags: v1, latest
|
||||
registry: hub.docker.com
|
||||
dockerfile: Dockerfile
|
||||
username: ${{ var.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
Loading…
Reference in a new issue