Skip to content

Commit

Permalink
ci: build and push docker image on each commit
Browse files Browse the repository at this point in the history
  • Loading branch information
azurejelly authored Aug 31, 2024
1 parent 7c44a46 commit 2b07a55
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Docker Image CI

on:
push:
branches:
- "master"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

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

- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ vars.DOCKERHUB_USERNAME }}/standalone-nuvotifier:latest

0 comments on commit 2b07a55

Please sign in to comment.