Skip to content

build(sponge): update entrypoint #23

build(sponge): update entrypoint

build(sponge): update entrypoint #23

Workflow file for this run

name: Build and push Docker Image
on:
push:
branches: [master, develop]
release:
types: [published]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Log in 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 (develop, unstable)
if: ${{ github.ref_name == 'develop' && github.event_name == 'push' }}
uses: docker/build-push-action@v6
with:
push: false
tags: ${{ vars.DOCKER_HUB_USERNAME }}/standalone-nuvotifier:unstable
- name: Build and push (master, unstable)
if: ${{ github.ref_name == 'master' && github.event_name == 'push' }}
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ vars.DOCKER_HUB_USERNAME }}/standalone-nuvotifier:unstable
- name: Build and push (release, stable)
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
uses: docker/build-push-action@v6
with:
push: true
tags: >-
${{ vars.DOCKER_HUB_USERNAME }}/standalone-nuvotifier:${{ github.event.release.tag_name }},
${{ vars.DOCKER_HUB_USERNAME }}/standalone-nuvotifier:latest