Skip to content

Commit

Permalink
test new bundle format
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Jan 26, 2024
1 parent d659446 commit 14d3630
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,36 @@ jobs:
docker run -d -p 5000:5000 --restart=always --name registry -v "$(pwd)/kotsadm-bundle/images":/var/lib/registry registry:2
docker run -d -p 5001:5000 --restart=always --name registry-nominio -v "$(pwd)/kotsadm-bundle-nominio/images":/var/lib/registry registry:2
- name: Read image tags from env file
run: mapfile -t envs < <(grep -v '#.*' < .image.env) && export "${envs[@]}"

- name: Build kotsadm bundle
env:
BUNDLE_DIR: kotsadm-bundle
BUNDLE_REGISTRY: localhost:5000
GIT_TAG: ${{ needs.generate-tag.outputs.tag }}
run: make kotsadm-bundle
run: mapfile -t envs < <(grep -v '#.*' < .image.env) && export "${envs[@]}" && make kotsadm-bundle

- name: Build kotsadm bundle without minio
env:
BUNDLE_DIR: kotsadm-bundle-nominio
BUNDLE_REGISTRY: localhost:5001
GIT_TAG: ${{ needs.generate-tag.outputs.tag }}
run: make kotsadm-bundle-nominio
run: mapfile -t envs < <(grep -v '#.*' < .image.env) && export "${envs[@]}" && make kotsadm-bundle-nominio

- name: ls dirs
- name: tar up the bundles
run: |
ls -lah kotsadm-bundle
ls -lah kotsadm-bundle/images
cat kotsadm-bundle/airgap.yaml
ls -lah kotsadm-bundle-nominio
ls -lah kotsadm-bundle-nominio/images
cat kotsadm-bundle-nominio/airgap.yaml
tar -czvf kotsadm.tar.gz kotsadm-bundle
tar -czvf kotsadm-nominio.tar.gz kotsadm-bundle-nominio
- name: Upload kotsadm bundle
uses: actions/upload-artifact@v4
with:
name: kotsadm-bundle
path: kotsadm.tar.gz

- name: Upload kotsadm bundle without minio
uses: actions/upload-artifact@v4
with:
name: kotsadm-bundle-nominio
path: kotsadm-nominio.tar.gz

# can-run-ci:
# runs-on: ubuntu-20.04
Expand Down

0 comments on commit 14d3630

Please sign in to comment.