m: add back init command #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci_master | |
| on: | |
| push: | |
| branches: | |
| - master | |
| permissions: | |
| contents: read # Required by actions/checkout | |
| packages: write # Required to pull/push docker image from/to registry | |
| env: | |
| DOCKER_ENV_REGISTRY: ${{ vars.DOCKER_ENV_REGISTRY }} | |
| jobs: | |
| cache_dev_image: | |
| runs-on: ubuntu-latest | |
| env: | |
| DOCKER_ENV_PUSH_TAG: ${{ github.sha }} | |
| steps: | |
| - name: Set up multiarch docker builder | |
| uses: docker/setup-buildx-action@v3 | |
| with: | |
| install: true | |
| platforms: linux/arm64,linux/amd64 | |
| - name: Login to registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ env.DOCKER_ENV_REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ github.token }} | |
| - name: Clone project | |
| uses: actions/checkout@v4 | |
| - name: Init env | |
| run: ./docker/env.sh init | |
| - name: Build, tag and push docker env | |
| run: ./docker/env.sh compose build --push |