Skip to content

Commit

Permalink
Create docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MorvanZhou authored May 22, 2024
1 parent a087611 commit b2eae7c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Docker Image CI

on:
release:
types: [published]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: sh dockerBuild.sh

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: morvanzhou
password: ${{ secrets.RETHINK_DOCKERHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: morvanzhou/rethink:${{ github.ref_name }}

0 comments on commit b2eae7c

Please sign in to comment.