mirror of
https://github.com/garethflowers/docker-mediawiki-ldap.git
synced 2025-04-19 08:55:13 +00:00
31 lines
911 B
YAML
31 lines
911 B
YAML
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
|