twigs-web/.github/workflows/docker-image.yml

23 lines
599 B
YAML
Raw Normal View History

2021-02-20 13:59:20 +00:00
name: Publish Docker image
on:
2021-02-20 14:03:27 +00:00
push:
branches: main
tags:
- '*'
2021-02-20 13:59:20 +00:00
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 }}
2021-02-20 13:59:20 +00:00
registry: docker.pkg.github.com
tag_with_ref: true