Skip to content

Commit

Permalink
build(docker): add github workflow for docker push
Browse files Browse the repository at this point in the history
  • Loading branch information
Onyxmoon committed Nov 9, 2023
1 parent 0572a8d commit 9f1e0e0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/docker-push-registry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy to docker

on:
push:
branches:
- main
workflow_dispatch:

jobs:
push:
name: Build and push to docker hub registry
runs-on: ubuntu-latest

steps:
- name: Checkout
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: isbang/compose-action@v1.5.1
with:
compose-file: "./docker-compose.yml"
compose-flags: "push"

0 comments on commit 9f1e0e0

Please sign in to comment.