mirror of
https://github.com/garethflowers/docker-mediawiki-ldap.git
synced 2025-04-19 08:55:13 +00:00
chore(github): switches to github actions
This commit is contained in:
parent
0e7a27e5f3
commit
0beec7c484
30
.github/workflows/publish-docker-images.yml
vendored
Normal file
30
.github/workflows/publish-docker-images.yml
vendored
Normal 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
|
@ -1,5 +1,3 @@
|
||||
[](https://travis-ci.org/garethflowers/mediawiki-ldap) [](https://microbadger.com/images/garethflowers/mediawiki-ldap) [](https://store.docker.com/community/images/garethflowers/mediawiki-ldap)
|
||||
|
||||
# MediaWiki with LDAP
|
||||
|
||||
A MediaWiki installation with LDAP extensions.
|
||||
|
@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
docker build \
|
||||
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
|
||||
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
||||
--build-arg VERSION=`cat VERSION` \
|
||||
--file $DOCKERFILE_PATH \
|
||||
--tag $IMAGE_NAME \
|
||||
.
|
@ -1,15 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $DOCKER_TAG =~ ^(([0-9]+).[0-9]+).[0-9]+$ ]]
|
||||
then
|
||||
docker tag $IMAGE_NAME $DOCKER_REPO:${BASH_REMATCH[1]}
|
||||
docker push $DOCKER_REPO:${BASH_REMATCH[1]}
|
||||
|
||||
docker tag $IMAGE_NAME $DOCKER_REPO:${BASH_REMATCH[2]}
|
||||
docker push $DOCKER_REPO:${BASH_REMATCH[2]}
|
||||
|
||||
docker tag $IMAGE_NAME $DOCKER_REPO:latest
|
||||
docker push $DOCKER_REPO:latest
|
||||
fi
|
||||
|
||||
curl --request POST https://hooks.microbadger.com/images/garethflowers/mediawiki-ldap/nE-ecjjtvisVdmZcJ21nacrxk6I= || true
|
Loading…
x
Reference in New Issue
Block a user