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

devcontainer-docker-image#145

devcontainer-docker-image

devcontainer-docker-image #145

name:devcontainer-docker-image
on:
workflow_dispatch:
schedule:
-cron:"48 19 * * 5"# Fridays at 19:48 UTC
release:
types:[published]
env:
REGISTRY:ghcr.io
IMAGE_NAME:${{ github.repository }}-devcontainer# pymc-devs/pymc-devcontainer
jobs:
build-container:
runs-on:ubuntu-latest
# Set permissions for GitHub token
# <https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#authenticating-to-package-registries-on-github>
permissions:
contents:read
packages:write
steps:
-name:Checkout source
uses:actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
persist-credentials:false
-name:Setup Docker buildx
uses:docker/setup-buildx-action@v3.10.0
-name:Prepare metadata
id:meta
uses:docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804
with:
images:${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags:|
type=sha,enable=true,prefix=git-
type=raw,value=latest
-name:Log into registry ${{ env.REGISTRY }}
uses:docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772
with:
registry:${{ env.REGISTRY }}
username:${{ github.actor }}
password:${{ secrets.GITHUB_TOKEN }}
-name:Build and push Docker image
id:docker_build
uses:docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1
with:
context:.
file:scripts/dev.Dockerfile
platforms:linux/amd64# ,linux/arm64
push:true
tags:${{ steps.meta.outputs.tags }}
labels:${{ steps.meta.outputs.labels }}
cache-from:type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
cache-to:type=inline

[8]ページ先頭

©2009-2025 Movatter.jp