moth/.github/workflows/publish.yml

55 lines
1.6 KiB
YAML
Raw Normal View History

2020-09-17 18:56:40 -06:00
name: Publish
2020-09-14 14:14:10 -06:00
on:
release:
types: [published]
jobs:
publish:
name: Publish Container Image
runs-on: ubuntu-latest
steps:
- name: Retrieve code
uses: actions/checkout@v1
2020-09-17 18:56:40 -06:00
- name: Push moth 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 }}
2020-09-17 18:56:40 -06:00
target: moth
file: build/package/Containerfile
2020-09-14 14:14:10 -06:00
registry: docker.pkg.github.com
repository: dirtbags/moth/moth
tag_with_ref: true
2020-09-17 18:56:40 -06:00
- name: Push moth-devel to GitHub Packages
uses: docker/build-push-action@v2
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
target: moth-devel
file: build/package/Containerfile
registry: docker.pkg.github.com
repository: dirtbags/moth/moth-devel
tag_with_ref: true
- name: Push moth to Docker Hub
uses: docker/build-push-action@v2
with:
username: neale
password: ${{ secrets.DOCKER_TOKEN }}
target: moth
file: build/packages/Containerfile
repository: dirtbags/moth
tag_with_ref: true
- name: Push moth-devel to Docker Hub
2020-09-14 14:29:24 -06:00
uses: docker/build-push-action@v2
with:
username: neale
password: ${{ secrets.DOCKER_TOKEN }}
2020-09-17 18:56:40 -06:00
target: moth-devel
file: build/packages/Containerfile
repository: dirtbags/moth-devel
2020-09-14 14:29:24 -06:00
tag_with_ref: true