Skip to content

Commit

Permalink
Merge pull request #86 from Cassius0924/feat-docker-build–actions
Browse files Browse the repository at this point in the history
[Build] Create docker-image.yml
  • Loading branch information
Cassius0924 authored Mar 8, 2024
2 parents a604507 + 5eb2fee commit 1d9159f
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: Build and Push Docker Image

on:
push:
branches:
- master

jobs:

build:

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Docker Login
uses: docker/[email protected]
with:
username: cassius0924
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
push: true
tags: cassius0924/wechatter:latest

0 comments on commit 1d9159f

Please sign in to comment.