Docker Images #593
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: Docker Images | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| push: | |
| tags: | |
| - v[0-9]+.[0-9]+.[0-9]+ | |
| permissions: | |
| packages: write | |
| concurrency: | |
| group: docker | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| if: github.repository == 'mikf/gallery-dl' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone repo | |
| run: | | |
| git clone --depth 1 --no-tags https://codeberg.org/mikf/gallery-dl.git . | |
| - uses: docker/metadata-action@v6 | |
| id: metadata | |
| with: | |
| images: | | |
| mikf123/gallery-dl | |
| ghcr.io/mikf/gallery-dl | |
| tags: | | |
| type=ref,event=tag | |
| type=raw,value=dev | |
| type=sha,format=long,prefix= | |
| type=raw,priority=500,value={{date 'YYYY.MM.DD'}} | |
| - uses: docker/setup-qemu-action@v4 | |
| - uses: docker/setup-buildx-action@v4 | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v4 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GHCR_TOKEN }} | |
| - uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| push: true | |
| tags: ${{ steps.metadata.outputs.tags }} | |
| labels: ${{ steps.metadata.outputs.labels }} | |
| platforms: linux/amd64,linux/arm64 |