Skip to content

Commit

Permalink
add docker build action
Browse files Browse the repository at this point in the history
Signed-off-by: Sid Sun <sid@sidsun.com>
  • Loading branch information
Sid-Sun committed Sep 21, 2024
1 parent ac09a34 commit 4f67139
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Docker Image Build and Push CI

on:
push:
branches:
- main

jobs:
build-and-push:
runs-on: ubuntu-latest
environment: prod

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

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to DockerHub
uses: docker/#-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
run: |
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t realsidsun/ntfy.tg:latest --push .

0 comments on commit 4f67139

Please # to comment.