Skip to content

Commit

Permalink
chore(docker): create docker build and push cd
Browse files Browse the repository at this point in the history
  • Loading branch information
anweisen committed Oct 21, 2023
1 parent d519340 commit e588f70
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build and Push Docker Image
on:
push:
branches: [ master ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@3

- name: Login to Docker Hub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}

- name: Build Docker Image
run: docker build -t anweisen/just_motd:latest .

- name: Push Docker Image
run: docker push anweisen/just_motd:latest

0 comments on commit e588f70

Please sign in to comment.