Repository navigation
deps(patch): update ghcr.io/cloudpunks/alpine:3.24 docker digest to 6c38f32 #44
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
| --- | |
| # yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json | |
| name: docker | |
| "on": | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| schedule: | |
| - cron: "0 8 1 * *" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| docker: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v7 | |
| - name: Detect version | |
| run: | | |
| VER=$(sed -ne "s/^.*GITLAB_CLI_VERSION=\(.*\)/\1/p;" latest/Dockerfile) | |
| echo IMAGE_TAG=${VER} >> ${GITHUB_ENV} | |
| echo "Building ${VER}" | |
| - name: Docker meta | |
| id: meta | |
| uses: docker/metadata-action@v6 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| images: | | |
| ghcr.io/${{ github.repository }} | |
| flavor: | | |
| latest=true | |
| tags: | | |
| type=raw,value=${{ env.IMAGE_TAG }} | |
| type=schedule,pattern={{date 'YYYYMMDD'}} | |
| type=ref,enable=true,event=branch | |
| labels: | | |
| org.opencontainers.image.vendor=Cloudpunks | |
| maintainer=Cloudpunks GmbH <[email protected]> | |
| - name: Setup QEMU | |
| uses: docker/setup-qemu-action@v4 | |
| - name: Setup Buildx | |
| id: buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Ghcr login | |
| uses: docker/login-action@v4 | |
| if: github.event_name != 'pull_request' | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Docker build | |
| uses: docker/build-push-action@v7 | |
| with: | |
| builder: ${{ steps.buildx.outputs.name }} | |
| context: latest/ | |
| file: latest/Dockerfile | |
| platforms: linux/amd64,linux/arm64 | |
| push: ${{ github.event_name != 'pull_request' }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| tags: ${{ steps.meta.outputs.tags }} | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| ... |