Skip to content

Commit

Permalink
Merge pull request #45 from LiuzLab/ci
Browse files Browse the repository at this point in the history
ci: build Docker image and push to Docker Hub
  • Loading branch information
hyunhwan-bcm authored Aug 16, 2024
2 parents 73d8b76 + 1ce407b commit d9c4546
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Docker Image aim-lite and Push

on:
push:
branches:
- main
- ci

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/aim-lite:latest

0 comments on commit d9c4546

Please sign in to comment.