diff --git a/.github/workflows/build-deploy.yaml b/.github/workflows/build-docker.yaml similarity index 53% rename from .github/workflows/build-deploy.yaml rename to .github/workflows/build-docker.yaml index d3f2717..bd7beb7 100644 --- a/.github/workflows/build-deploy.yaml +++ b/.github/workflows/build-docker.yaml @@ -1,10 +1,6 @@ -name: cd +name: build-docker on: push -env: - DEPLOYMENT: weatherstar - YAMLPATH: clusters/home-kluster/apps/weatherstar/weatherstar/app/deployment.yaml - jobs: build: name: Build Image @@ -19,7 +15,7 @@ jobs: uses: docker/metadata-action@v4 with: images: | - ghcr.io/rmitchellscott/ws4kp + ghcr.io/netbymatt/ws4kp tags: | type=raw,priority=1000,value=latest,enable=${{ github.ref == 'refs/heads/main' }} type=ref,event=branch @@ -41,29 +37,8 @@ jobs: context: . pull: true push: ${{ github.ref == 'refs/heads/main' }} - platforms: linux/amd64 + platforms: linux/amd64,linux/arm/v7,linux/arm64/v8 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha - cache-to: type=gha,mode=max - deploy: - runs-on: ubuntu-latest - name: Deploy to flux - needs: build - steps: - - name: Check out Kubernetes repo - uses: actions/checkout@v3 - with: - repository: rmitchellscott/kubernetes-apps - token: ${{ secrets.PAT }} - ref: "master" - - id: short-sha - uses: benjlevesque/short-sha@v1.2 - - name: Replace the image tag - env: - TAG: ${{ steps.short-sha.outputs.sha }} - run: yq -i e '(select(.kind=="Deployment" and .metadata.name==env(DEPLOYMENT)) | .spec.template.spec.containers.[].image) |= split(":").0 + ":" + env(TAG)' $YAMLPATH - - name: Commit and push - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Update image tag for ${{env.DEPLOYMENT}} to ${{ steps.short-sha.outputs.sha }} \ No newline at end of file + cache-to: type=gha,mode=max \ No newline at end of file diff --git a/README.md b/README.md index 659f69a..7312c73 100644 --- a/README.md +++ b/README.md @@ -19,12 +19,18 @@ This project is based on the work of [Mike Battaglia](https://github.com/vbguyny ## Run Your WeatherStar There are a lot of CORS considerations and issues with api.weather.gov that are easiest to deal with by running a local server to see this in action (or use the live link above). You'll need Node.js >12.0 to run the local server. +To run via Node locally: ``` git clone https://github.com/netbymatt/ws4kp.git cd ws4kp npm i node index.js ``` + +To run via Docker: +``` +docker run -p 8080:8080 ghcr.io/netbymatt/ws4kp +``` Open your web browser: http://localhost:8080/ ## Updates in 5.0 diff --git a/server/images/Logo3-OG.png b/server/images/Logo3-OG.png deleted file mode 100644 index cce7cd4..0000000 Binary files a/server/images/Logo3-OG.png and /dev/null differ diff --git a/server/images/Logo3.png b/server/images/Logo3.png index dc4e2bc..cce7cd4 100644 Binary files a/server/images/Logo3.png and b/server/images/Logo3.png differ