Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
faberf authored May 15, 2024
1 parent 4678fc6 commit f9af8d8
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,30 @@
name: Docker Image CI
name: Build Docker Images

on:
push:
branches: [ "main" ]
branches:
- main # Trigger the workflow on push events to the main branch.
pull_request:
branches: [ "main" ]
branches:
- main

jobs:

build:

runs-on: ubuntu-latest
runs-on: ubuntu-latest # The type of runner that the job will run on.

steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: ./build_docker.sh
- 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

0 comments on commit f9af8d8

Please sign in to comment.