Auto-merge master back to dev #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Docker Image | |
| # Run workflow on tags starting with v (eg. v2, v1.2.0) | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - v* | |
| env: | |
| IMAGE_NAME: md2confluence | |
| jobs: | |
| Deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v1 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v1 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GH_TOKEN }} | |
| - name: Login to DockerHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ vars.DH_USER }} | |
| password: ${{ secrets.DH_TOKEN }} | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Set Metadata | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: | | |
| ${{ vars.DH_USER }}/${{ env.IMAGE_NAME }} | |
| ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }} | |
| tags: | | |
| # production (i.e. 2.36+b1) | |
| type=ref,event=tag,priority=600 | |
| # stable (i.e. 2.36) | |
| type=match,pattern=[^\+]+,priority=500 | |
| - name: Build and Push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| platforms: | | |
| linux/amd64 | |
| linux/arm/v6 | |
| linux/arm/v7 | |
| linux/arm64/v8 | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} |