本文へ移動
cccskills
無料GitHub で公開

docker-build-push

Build and push multi-platform Docker images to Google Artifact Registry. Use when user asks to build, push, or deploy a Docker image with a tag. Triggers: "build and push", "push docker image", "build with tag", "deploy image".

日本語の概要は準備中です。原文の説明を表示しています。

連携ツールDocker
インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Docker Build and Push

Build and push multi-platform Docker images to the melosys-api Google Artifact Registry.

This repo-local skill intentionally overrides the global docker-build-push, which auto-detects the image name from the cwd (basename of the git root) and would mis-name images in parallel checkouts like melosys-api-claude.

Image name — ALWAYS melosys-api

The image repository is always melosys-api, never the cwd directory name. Parallel workspaces may be checked out as melosys-api-claude, melosys-api-2, etc., but the published image name never changes.

Registry

europe-north1-docker.pkg.dev/nais-management-233d/teammelosys/melosys-api

Build and Push Command

docker buildx build --platform linux/amd64,linux/arm64 \
  -t europe-north1-docker.pkg.dev/nais-management-233d/teammelosys/melosys-api:TAG \
  --push .

Replace TAG with user-specified tag.

Workflow

The Dockerfile is single-stage (distroless) and copies a pre-built JAR (COPY /app/target/melosys-sb-execution.jar) — it does NOT build the JAR itself. So you must produce the JAR before the buildx build whenever code changed or app/target/ has no current JAR.

  1. Build the JAR first: make build-fast (mvn clean install -DskipTests)
  2. Run buildx build with --push — keep the image path exactly as shown above
  3. Report: tag, platforms, manifest digest
  4. Before reporting "done", verify the -t argument ends with /melosys-api:TAG (not /melosys-api-claude:TAG or any other variant)

Setup (if buildx not configured)

docker buildx create --name multiplatform --use --driver docker-container || docker buildx use multiplatform

Error Handling

Authentication expired

Message: "Reauthentication failed" Solution: Ask user to run gcloud auth login, then retry

No matching manifest for linux/amd64

Cause: Image built only for arm64 Solution: Use --platform linux/amd64,linux/arm64 flag

Output Format

After successful push:

Done!

Image details:
- Tag: europe-north1-docker.pkg.dev/.../melosys-api:TAG
- Platforms: linux/amd64, linux/arm64
- Manifest digest: sha256:...

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Expert knowledge of Altinn A1 application processing for posted workers in melosys-api. Use when: (1) Understanding Altinn søknad/skjema processing, (2) Debugging MedlemskapArbeidEOS form mapping, (3) Understanding SoeknadMapper transformations, (4) Investigating posted worker application issues, (5) Understanding the MOTTAK_SOKNAD_ALTINN saga flow.

日本語の概要は準備中です。原文の説明を表示しています。

navikt/melosys-api22026年10月21日 更新

Expert knowledge of Employer/Employment integration (EREG/AAREG) in melosys-api. Use when: (1) Working with organization data from EREG (Enhetsregisteret), (2) Working with employment data from AAREG (Arbeidsforhold), (3) Understanding employer/organization lookup, (4) Debugging employer or employment issues, (5) Understanding the mapping between register data and domain models. Triggers: orgnummer, arbeidsforhold, EREG, AAREG, Enhetsregisteret, registeropplysninger, ansettelsesperiode, saksopplysning.

日本語の概要は準備中です。原文の説明を表示しています。

navikt/melosys-api22026年10月21日 更新

Modular monolith architecture overview for melosys-api. Use when needing to understand module structure, dependencies between modules, where to place new code, or when changes in one module might affect others. Triggers: "architecture", "module dependencies", "where should I put", "which modules", "dependency graph".

日本語の概要は準備中です。原文の説明を表示しています。

navikt/melosys-api22026年10月21日 更新

Expert knowledge of Behandling (case treatment) domain in melosys-api. Use when: (1) Understanding the behandling lifecycle and status transitions, (2) Debugging issues with behandling creation, status changes, or closure, (3) Understanding relationships between Fagsak, Behandling, and Behandlingsresultat, (4) Investigating why a behandling is stuck or has wrong status, (5) Understanding Behandlingstyper, Behandlingstema, Behandlingsstatus enums, (6) Debugging journalføring or SED-triggered behandling creation, (7) Understanding behandling creation via saksflyt sagas.

日本語の概要は準備中です。原文の説明を表示しています。

navikt/melosys-api22026年10月21日 更新

Expert knowledge of Behandlingsresultat (treatment result) domain in melosys-api. Use when: (1) Understanding result types and their meaning (FASTSATT_LOVVALGSLAND, MEDLEM_I_FOLKETRYGDEN, etc.), (2) Working with periods - Lovvalgsperiode, Medlemskapsperiode, Anmodningsperiode, Utpekingsperiode, (3) Debugging vedtak/decision metadata, criteria evaluation, or social insurance charges, (4) Understanding EU/EEA coordination logic and Article 16 exception handling, (5) Working with trygdeavgift (social insurance charge) calculations.

日本語の概要は準備中です。原文の説明を表示しています。

navikt/melosys-api22026年10月21日 更新

brev

無料

Expert knowledge of Brev (letter generation) in melosys-api. Use when: (1) Producing letters and decision documents (vedtaksbrev), (2) Understanding Dokgen templates and mapping, (3) Configuring letter recipients and distribution, (4) Debugging letter generation issues, (5) Adding new letter types or templates.

日本語の概要は準備中です。原文の説明を表示しています。

navikt/melosys-api22026年10月21日 更新

navikt のスキルをすべて見る

このスキルの問題を報告する