Skip to content

Commit

Permalink
chore(ci): Add workflow 'Build main every 8 hours for dev' (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
universal-itengineer authored May 15, 2024
2 parents ed9ea79 + 7e9023f commit 4906ad5
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/dev_build-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build main 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_main:
runs-on: ubuntu-latest
name: Build main
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: main

- name: Remove unwanted software
uses: ./.github/actions/remove-unwanted-software

- uses: deckhouse/modules-actions/setup@v1

- name: Build images
run: |
source "$(werf ci-env github --as-file)"
werf build --repo=${MODULES_MODULE_SOURCE}/${MODULES_MODULE_NAME}

0 comments on commit 4906ad5

Please sign in to comment.