Skip to content

Commit

Permalink
Add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
lentzi90 committed Jan 24, 2024
1 parent 427620d commit 21a7a2f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/osimages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: E2E node images

on:
pull_request:
branches: [main]
paths-ignore:
- '**/*.md'
- 'docs/**'
- '.gitignore'
- 'hack/*.sh'
- 'LICENSE'
- 'SECURITY_CONTACTS'
- 'OWNERS'

permissions: {}

jobs:
build:
name: Build and upload node images
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Build images
run: make -C osimages -j2 ACCELERATOR=none \
osimage-flatcar-1.27.2 \
osimage-flatcar-1.28.2 \
osimage-ubuntu-2204-1.28.2 \
osimage-ubuntu-2204-1.27.2

- name: Upload images
run: make -C osimages osimage-upload
2 changes: 1 addition & 1 deletion osimages/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ osimage-%: FORCE
.PHONY: FORCE
FORCE:

.PHONY: osimage-upload:
.PHONY: osimage-upload
osimage-upload:
ls $(OSIMAGE_DIR)
gsutil cp $(OSIMAGE_DIR)/* gs://$(STAGING_BUCKET)/test
2 changes: 1 addition & 1 deletion osimages/cloudbuild-osimages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ steps:
script: |
apk add --update bash git make
cd ./osimages
make -j2 ACCELERATOR=none \
make -j2 ACCELERATOR=kvm \
osimage-flatcar-1.27.2 \
osimage-flatcar-1.28.2 \
osimage-ubuntu-2204-1.28.2 \
Expand Down

0 comments on commit 21a7a2f

Please sign in to comment.