Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Build

Build #273

Workflow file for this run

name:Build
on:
pull_request:
push:
branches:
-main
schedule:
-cron:'0 0 * * 1-6'
-cron:'0 0 * * 0'# runs with no-cache
workflow_dispatch:
inputs:
no-cache:
description:'Skip Docker cache'
type:boolean
default:false
jobs:
setup:
runs-on:ubuntu-latest
steps:
-uses:actions/checkout@v5
-name:Find Dockerfiles
id:scan
run:echo "dockerfiles=$(find . -name Dockerfile | cut -c3- | jq -R -s -c 'split("\n")[:-1]')" >> "$GITHUB_OUTPUT"
outputs:
dockerfiles:${{ steps.scan.outputs.dockerfiles }}
build:
runs-on:ubuntu-latest
needs:setup
strategy:
fail-fast:false
matrix:
dockerfile:${{ fromJSON(needs.setup.outputs.dockerfiles) }}
steps:
-uses:actions/checkout@v5
-name:Get image metadata
id:meta
run:|
tags=$(grep "tags=" ${{ matrix.dockerfile }} | cut -d "=" -f 2)
platforms=$(grep "platforms=" ${{ matrix.dockerfile }} | cut -d "=" -f 2)
[ -z "$platforms" ] && platforms="linux/amd64,linux/arm64"
echo "context=$(dirname "${{ matrix.dockerfile }}")" >> "$GITHUB_OUTPUT"
echo "tags=${tags}" >> "$GITHUB_OUTPUT"
echo "cache=$(echo "$tags" | cut -d "," -f 1)" >> "$GITHUB_OUTPUT"
echo "platforms=${platforms}" >> "$GITHUB_OUTPUT"
-uses:docker/setup-qemu-action@v3
-uses:docker/setup-buildx-action@v3
-uses:docker/login-action@v3
with:
username:${{ secrets.DOCKERHUB_USERNAME }}
password:${{ secrets.DOCKERHUB_TOKEN }}
-uses:docker/build-push-action@v6
with:
context:${{ steps.meta.outputs.context }}
pull:${{ github.event_name != 'pull_request' }}
push:${{ github.event_name != 'pull_request' }}
tags:${{ steps.meta.outputs.tags }}
platforms:${{ steps.meta.outputs.platforms }}
cache-from:type=registry,ref=${{ steps.meta.outputs.cache }}
cache-to:type=inline
no-cache:${{ github.event.schedule == '0 0 * * 0' || (github.event_name == 'workflow_dispatch' && inputs.no-cache) }}
dockerhub:
runs-on:ubuntu-latest
needs:build
if:github.event_name != 'pull_request'
steps:
-uses:actions/checkout@v5
-uses:peter-evans/dockerhub-description@432a30c9e07499fd01da9f8a49f0faf9e0ca5b77# pin@v4
with:
repository:articulate/python
username:${{ secrets.DOCKERHUB_USERNAME }}
password:${{ secrets.DOCKERHUB_TOKEN }}
short-description:${{ github.event.repository.description }}
notify:
runs-on:ubuntu-latest
needs:build
if:github.event_name != 'pull_request'
steps:
-run:curl ${{ secrets.DMS_URL }}

[8]ページ先頭

©2009-2025 Movatter.jp