mirror of
https://github.com/garethflowers/docker-mediawiki-ldap.git
synced 2025-04-19 00:45:19 +00:00
* chore(deps): bump docker/metadata-action from 5.0.0 to 5.4.0 Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 5.0.0 to 5.4.0. - [Release notes](https://github.com/docker/metadata-action/releases) - [Commits](https://github.com/docker/metadata-action/compare/v5.0.0...v5.4.0) --- updated-dependencies: - dependency-name: docker/metadata-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix(docker): update extension hash --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gareth Flowers <garethflowers@users.noreply.github.com>
62 lines
2.0 KiB
YAML
62 lines
2.0 KiB
YAML
name: Build and Publish Images
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- "*.*.*"
|
|
jobs:
|
|
publish:
|
|
name: Publish
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Prepare
|
|
id: prep
|
|
uses: docker/metadata-action@v5.4.0
|
|
with:
|
|
images: |
|
|
${{ github.repository_owner }}/mediawiki-ldap
|
|
ghcr.io/${{ github.repository_owner }}/mediawiki-ldap
|
|
tags: |
|
|
type=edge,branch=main
|
|
type=semver,pattern={{version}}
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
type=semver,pattern={{major}}
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: Login to DockerHub
|
|
if: github.event_name != 'pull_request'
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: Login to GHCR
|
|
if: github.event_name != 'pull_request'
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Build and Push
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
platforms: linux/amd64,linux/arm/v7,linux/ppc64le # linux/386,linux/arm/v6,linux/arm64,linux/s390x
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
tags: ${{ steps.prep.outputs.tags }}
|
|
labels: ${{ steps.prep.outputs.labels }}
|
|
- name: Update Description
|
|
continue-on-error: true
|
|
uses: peter-evans/dockerhub-description@v3
|
|
with:
|
|
short-description: ${{ github.event.repository.description }}
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|