Another stab at CI publishing

This commit is contained in:
Neale Pickett 2020-09-14 20:14:10 +00:00
parent e12a55e856
commit e37e977ec5
3 changed files with 40 additions and 8 deletions

View File

@ -10,11 +10,3 @@ jobs:
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Build mothd - name: Build mothd
run: docker build . run: docker build .
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: dirtbags/moth/moth
tag_with_ref: true

20
.github/workflows/docker_publish.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Mothd Docker build
on: [push]
jobs:
build-mothd:
name: Build mothd
runs-on: ubuntu-latest
steps:
- name: Retrieve code
uses: actions/checkout@v1
- name: Build mothd
run: docker build .
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: dirtbags/moth/moth
tag_with_ref: true

20
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,20 @@
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
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: dirtbags/moth/moth
tag_with_ref: true