moth/.github/workflows/publish.yml

28 lines
740 B
YAML
Raw Normal View History

2020-09-14 14:14:10 -06:00
name: Publish Container image
on:
release:
types: [published]
jobs:
publish:
name: Publish Container Image
runs-on: ubuntu-latest
steps:
- name: Retrieve code
uses: actions/checkout@v1
- name: Push to GitHub Packages
2020-09-14 14:29:24 -06:00
uses: docker/build-push-action@v2
2020-09-14 14:14:10 -06:00
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: dirtbags/moth/moth
tag_with_ref: true
2020-09-14 14:29:24 -06:00
- name: Push to Docker Hub
uses: docker/build-push-action@v2
with:
username: neale
password: ${{ secrets.DOCKER_TOKEN }}
registry: dirtbags/moth
tag_with_ref: true