Update docker-image.yml #2
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: Build Docker Images | |
on: | |
push: | |
branches: | |
- main # Trigger the workflow on push events to the main branch. | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest # The type of runner that the job will run on. | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 # Checks-out your repository under $GITHUB_WORKSPACE | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} # Set in your repo's secrets | |
password: ${{ secrets.DOCKER_PASSWORD }} # Set in your repo's secrets | |
- name: Run build script | |
run: | | |
bash build_docker.sh |