Swap to netbymatt GHCR
This commit is contained in:
parent
146a3fda76
commit
2d0af7a143
|
@ -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 }}
|
||||
cache-to: type=gha,mode=max
|
|
@ -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
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 4.7 KiB |
Binary file not shown.
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 4.7 KiB |
Loading…
Reference in a new issue