Skip to content

Commit

Permalink
Merge pull request #624 from neozhu/neozhu-patch-2
Browse files Browse the repository at this point in the history
Create docker-image.yml
  • Loading branch information
neozhu authored Feb 20, 2024
2 parents fea7208 + 1801ebe commit 4d81234
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: ./src/Server.UI
file: ./src/Server.UI/Dockerfile
push: true
tags: dockerksjscn/cleanarchitectureblazorserver:latest

0 comments on commit 4d81234

Please sign in to comment.