Skip to content

Merge pull request #2 from inc4/add-whitespace-linter #15

Merge pull request #2 from inc4/add-whitespace-linter

Merge pull request #2 from inc4/add-whitespace-linter #15

Workflow file for this run

name: Publish docker image
on:
push:
branches: main
tags: v*
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v4
id: meta
with:
images: ghcr.io/inc4/go-template
- uses: docker/build-push-action@v3
with:
push: true
build-args: |
GH_TOKEN=${{ secrets.GH_TOKEN }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}