Update Readme.md #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker image Creation and Push to DockerHub | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
name: The Main Build Job | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout Repository | |
- uses: docker/setup-qemu-action@v3 | |
name: Setup Docker Qemu | |
- uses: docker/setup-buildx-action@v3 | |
name: Setup Docker Buildx | |
- uses: docker/login-action@v3 | |
name: Dockerhub Login | |
with: | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} | |
- uses: docker/build-push-action@v3 | |
name: Build and Push | |
with: | |
push: true | |
tags: ${{ secrets.USERNAME }}/spring_boot_docker_github_action:latest |