chore(github): switches to github actions

This commit is contained in:
Gareth Flowers
2020-08-10 11:02:24 +01:00
parent 0e7a27e5f3
commit 0beec7c484
4 changed files with 30 additions and 26 deletions

View File

@@ -0,0 +1,30 @@
name: Publish Docker Images
on:
push:
branches: [ master ]
release:
types: [ published ]
jobs:
push_to_registries:
name: Push Docker images
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: garethflowers/mediawiki-ldap
add_git_labels: true
tag_with_ref: true
- 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: ${{ github.repository }}/mediawiki-ldap
add_git_labels: true
tag_with_ref: true