GitHub
.github/workflows/run.yaml on: push permissions: contents: write jobs: main: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: | echo "sample." >> text.txt git config user.name github-actions git config user.email github-act…
GitHub Action で,docker/setup-buildx-actionを用いて複数のイメージを扱ってみます. 前提条件 簡単な例として,pip コマンドで依存関係を解決して,結果を表示する Docker イメージをビルドします. Dockerfile FROM python:3.11-slim-bullseye WORKDIR …
とあるディレクトリに保存されている全てのGitレポジトリのバンドルファイルを作成するシェルスクリプトを作成しました. #! /bin/zsh mkdir -p bundles for dir in * do if [ -e $dir/.git ]; then cd $dir git bundle create ../bundles/$dir.bundle HEAD …
おそらくGitHub Actions Environmentsで簡単に実現できることだと思うのですが,privateレポジトリでは使えないので,少し工夫してブランチ毎のSecretsを取得できるようにしました. 要件 testブランチのpushイベントで起動したら,VAL_TESTという名前のsecr…
GitHub ActionsでArtifactを扱っていたところ,突然以下のようなエラーが出て実行できなくなりました. Create Artifact Container failed: Artifact storage quota has been hit. Unable to upload any new artifacts. 無料プランでGitHubを利用していたの…
GitHub Actionsのworking-directoryで少しハマったのでメモします. defaults.run ワークフロー中のすべてのrunステップに対するデフォルトのshell及びworking-directoryオプションを提供することができます。 GitHub Actionsのワークフロー構文 - GitHub Do…