Skip to content

Commit

Permalink
Create CI pipeline for VM images
Browse files Browse the repository at this point in the history
  • Loading branch information
xquery-go committed Apr 7, 2023
1 parent 502effe commit 6a11abe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- 'build/**'
- '!**.md'
workflow_dispatch:
schedule:
- cron: '9 21 7 * *'

jobs:
base-image:
Expand All @@ -15,9 +17,12 @@ jobs:
working-directory: build
steps:
- uses: actions/checkout@v3
- name: install required tools
run: sudo make .gha-environment
- name: build image
run: sudo make image
- name: compress image
run: make compact
- run: sudo make .gha-environment
- run: sudo make image
- run: make compact
- if: github.ref == 'refs/heads/terraform'
run: make upload
env:
S3_BUCKET: ${{ secrets.S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
4 changes: 0 additions & 4 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ progress of longer tasks.

## High priority: blocks deployment

**build/**

- Create CI pipeline with GitHub actions to push updated images to S3 (on schedule)

**deploy/**

- Add wrapper that runs `tf apply` in a loop with a small delay (~1min)
Expand Down

0 comments on commit 6a11abe

Please sign in to comment.