Skip to content

Merge pull request #1188 from Metro-Records/hcg/email #347

Merge pull request #1188 from Metro-Records/hcg/email

Merge pull request #1188 from Metro-Records/hcg/email #347

Workflow file for this run

name: Publish Docker image to GitHub Container Registry
on:
push:
branches:
- main
- deploy
- heroku
- heroku-prod
jobs:
publish:
name: Publish Docker image to GitHub Container Registry
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create tag from branch
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/${{ github.repository }}
- name: Push to GitHub Packages
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ steps.meta.outputs.tags }}