Skip to content

Update README.md

Update README.md #99

name: 'Docker: femiwiki-extensions'
on:
push:
paths:
- 'dockers/femiwiki-extensions/**'
- .github/workflows/docker-femiwiki-extensions.yml
pull_request:
paths:
- 'dockers/femiwiki-extensions/**'
- .github/workflows/docker-femiwiki-extensions.yml
workflow_dispatch:
jobs:
docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
if: github.repository_owner == 'femiwiki' && github.ref == 'refs/heads/main'
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: get-version
run: echo "ver=$(grep -m 1 '## v' dockers/femiwiki-extensions/README.md | cut -d'v' -f2)" >> $GITHUB_OUTPUT
- uses: docker/build-push-action@v6
with:
context: '{{ defaultContext }}:dockers/femiwiki-extensions'
platforms: linux/amd64,linux/arm64
cache-from: ghcr.io/femiwiki/femiwiki-extensions:latest
load: false
push: ${{ github.repository_owner == 'femiwiki' && github.ref == 'refs/heads/main' }}
tags: |
ghcr.io/femiwiki/femiwiki-extensions:latest
ghcr.io/femiwiki/femiwiki-extensions:${{ steps.get-version.outputs.ver }}