Build main, pre-alpha every 8 hours for dev #49
This file contains 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: Build main, pre-alpha every 8 hours for dev | |
env: | |
MODULES_REGISTRY: ${{ vars.DEV_REGISTRY }} | |
CI_COMMIT_REF_NAME: ${{ github.ref_name }} | |
MODULES_MODULE_NAME: ${{ vars.MODULE_NAME }} | |
MODULES_MODULE_SOURCE: ${{ vars.DEV_MODULE_SOURCE }} | |
MODULES_REGISTRY_LOGIN: ${{ vars.DEV_MODULES_REGISTRY_LOGIN }} | |
MODULES_REGISTRY_PASSWORD: ${{ secrets.DEV_MODULES_REGISTRY_PASSWORD }} | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 */8 * * *" | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build_branches: | |
name: Build main | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
branch: [main, pre-alpha] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ matrix.branch }} | |
- name: Remove unwanted software | |
uses: ./.github/actions/remove-unwanted-software | |
- uses: deckhouse/modules-actions/setup@v1 | |
- name: Build images | |
run: | | |
# MODULES_MODULE_TAG env is required by release-channel image. | |
# This image is not significant for development environments, so we use fake value for it. | |
echo "Warmup cache using MODULES_MODULE_TAG=dev" | |
export MODULES_MODULE_TAG=dev | |
source "$(werf ci-env github --as-file)" | |
werf build --repo=${MODULES_MODULE_SOURCE}/${MODULES_MODULE_NAME} |