Skip to content

Commit

Permalink
update project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Jan 10, 2025
1 parent e08a65f commit 3ea55b6
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 93 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/bundle.yaml → .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: Bundle

name: CD
on:
push:
branches:
- main
tags:
- 'bundle/v*.*.*'

- '*/v*.*.*'
jobs:
publish-bundle:
name: Build and push bundle image
publish:
strategy:
matrix:
image: [ plural-cli, plural-bundle, trust-manager-bundle ]
name: Build and push ${{ matrix.image }} image
if: startsWith(github.ref, format('refs/tags/{0}', matrix.image)) || github.ref == 'refs/heads/main'
runs-on: ubuntu-22.04
permissions:
contents: 'read'
Expand All @@ -23,11 +25,11 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/pluralsh/kairos-plural-bundle
docker.io/pluralsh/kairos-plural-bundle
ghcr.io/pluralsh/kairos-${{matrix.image}}
docker.io/pluralsh/kairos-${{matrix.image}}
tags: |
type=sha
type=match,pattern=bundle/v(.*),group=1
type=match,pattern=${{matrix.image}}/v(.*),group=1
type=raw,value=latest,enable={{is_default_branch}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -47,8 +49,8 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v6
with:
context: "."
file: "./bundle.Dockerfile"
context: "images/${{matrix.image}}/."
file: "images/${{matrix.image}}/Dockerfile"
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
59 changes: 0 additions & 59 deletions .github/workflows/cli.yaml

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Build artifacts
/build
/old/build

# IDE files
/.idea
Expand Down
20 changes: 0 additions & 20 deletions Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The general process of setting up your Raspberry Pi 4 is pretty straightforward,
and it can be started with the following command:

```bash
curl -fsSL -o get-plural-edge-rpi4 https://raw.githubusercontent.com/pluralsh/edge/main/scripts/get-plural-edge-rpi4
curl -fsSL -o get-plural-edge-rpi4 https://raw.githubusercontent.com/pluralsh/edge/main/hack/get-plural-edge-rpi4
chmod 700 get-plural-edge-rpi4
./get-plural-edge-rpi4
```
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/get-plural-edge-rpi4 → hack/get-plural-edge-rpi4
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ read -p "Please enter password for kairos user: " -rs PASSWORD
echo -e ""

echo "Downloading cloud-config.yaml..."
curl --silent https://raw.githubusercontent.com/pluralsh/edge/main/cloud-config.yaml -o cloud-config.yaml
curl --silent https://raw.githubusercontent.com/pluralsh/edge/main/hack/cloud-config.yaml -o cloud-config.yaml

echo "Templating cloud-config.yaml..."
templ "URL" "${URL}" cloud-config.yaml
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3ea55b6

Please sign in to comment.