twigs-web/.github/workflows/docker-image.yml
William Brawner c1455df969 Remove explicit repository name for docker builds
Signed-off-by: William Brawner <me@wbrawner.com>
2021-02-25 12:04:15 -07:00

22 lines
599 B
YAML

name: Publish Docker image
on:
push:
branches: main
tags:
- '*'
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}/${{ github.event.repository.name }}
registry: docker.pkg.github.com
tag_with_ref: true