Skip to content
This repository was archived by the owner on Oct 25, 2025. It is now read-only.

add Dockerfile and github action to build,push image #1

add Dockerfile and github action to build,push image

add Dockerfile and github action to build,push image #1

Workflow file for this run

name: Publish Docker image
on:
push:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
env:
HAVESECRET: ${{ secrets.DOCKER_USERNAME }}
steps:
- name: Check out the repo
uses: actions/checkout@v3
if: env.HAVESECRET != null
- name: Log in to Docker Hub
uses: docker/login-action@v2
if: env.HAVESECRET != null
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
if: env.HAVESECRET != null
with:
images: loomio/mailin
- name: Build and push Docker image
uses: docker/build-push-action@v4
if: env.HAVESECRET != null
with:
context: .
push: true
tags: loomio/mailin:latest
labels: ${{ steps.meta.outputs.labels }}