Skip to content

Update docker-image.yml #4

Update docker-image.yml

Update docker-image.yml #4

Workflow file for this run

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.
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
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