Coder Social home page Coder Social logo

infra's Introduction

infra

terraform init

terraform init

# direnv を有効化
direnv allow

# init
terraform init \
-backend-config="bucket=${TF_VAR_BUCKET_NAME}"

act による GitHub Actions の検証

ジョブ名を指定して実行

# test ワークフローの plan ジョブを指定
act --pull=false --secret-file .env -j plan

ワークフローを指定して実行

# test ワークフローを指定
act --pull=false --secret-file .env -W .github/workflows/test.yml

Docker Hub ではなく ghcr.io から image を参照する

Docker Hub はレートリミットが厳しいので ghcr.io を使う
~/.actrc に以下を設定する

-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest

ghcr.io にログインしていない場合は以下を実行

cat ~/ghcr.txt | docker login ghcr.io -u honahuku --password-stdin

infra's People

Contributors

honahuku avatar

Watchers

 avatar

infra's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.