Skip to content

Commit

Permalink
Merge pull request #33 from kube-tarian/helm-docker-config
Browse files Browse the repository at this point in the history
helm and docker configuration files updated
  • Loading branch information
jebjohns authored Jan 22, 2023
2 parents 96b5ec7 + 27979e2 commit c55ca7f
Show file tree
Hide file tree
Showing 7 changed files with 182 additions and 4 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/agent-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Agent Docker Image CI

on:
push:
paths-ignore:
- 'charts/**'
- '**.md'
branches: [ main ]
pull_request:
paths-ignore:
- 'helm/**'
- '**.md'
branches: [ main ]

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file dockerfiles/agent/Dockerfile --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/agent:latest
- name: Docker push
run: |
docker login ${{ env.REGISTRY }} -u jebinjeb -p ${{ secrets.GITHUB_TOKEN }}
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/agent:latest
if: github.event_name == 'push'



38 changes: 38 additions & 0 deletions .github/workflows/config-worker-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Client Docker Image CI

on:
push:
paths-ignore:
- 'charts/**'
- '**.md'
branches: [ main ]
pull_request:
paths-ignore:
- 'helm/**'
- '**.md'
branches: [ main ]

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file dockerfiles/config-worker/Dockerfile --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/config-worker:latest
- name: Docker push
run: |
docker login ${{ env.REGISTRY }} -u jebinjeb -p ${{ secrets.GITHUB_TOKEN }}
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/config-worker:latest
if: github.event_name == 'push'



38 changes: 38 additions & 0 deletions .github/workflows/deployment-worker-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Client Docker Image CI

on:
push:
paths-ignore:
- 'charts/**'
- '**.md'
branches: [ main ]
pull_request:
paths-ignore:
- 'helm/**'
- '**.md'
branches: [ main ]

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file dockerfiles/deployment-worker/Dockerfile --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/deployment-worker:latest
- name: Docker push
run: |
docker login ${{ env.REGISTRY }} -u jebinjeb -p ${{ secrets.GITHUB_TOKEN }}
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/deployment-worker:latest
if: github.event_name == 'push'



26 changes: 26 additions & 0 deletions .github/workflows/helm_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Helm Chart publish

on:
push:
paths:
- 'charts/**'
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@@gmail.com"
- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
38 changes: 38 additions & 0 deletions .github/workflows/server-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Client Docker Image CI

on:
push:
paths-ignore:
- 'charts/**'
- '**.md'
branches: [ main ]
pull_request:
paths-ignore:
- 'helm/**'
- '**.md'
branches: [ main ]

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file dockerfiles/server/Dockerfile --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/server:latest
- name: Docker push
run: |
docker login ${{ env.REGISTRY }} -u jebinjeb -p ${{ secrets.GITHUB_TOKEN }}
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/server:latest
if: github.event_name == 'push'



6 changes: 3 additions & 3 deletions charts/kad/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ image:
pullPolicy: IfNotPresent
tag: "0.1.1"
agent:
repository: kad-agent
repository: ghcr.io/kube-tarian/kad/agent
deployment_worker:
repository: kad-deployment-worker
repository: ghcr.io/kube-tarian/kad/deployment-worker
config_worker:
repository: kad-config-worker
repository: ghcr.io/kube-tarian/kad/config-worker

imagePullSecrets: []
nameOverride: ""
Expand Down
2 changes: 1 addition & 1 deletion charts/server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
replicaCount: 1

image:
repository: kad-server
repository: ghcr.io/kube-tarian/kad/server
pullPolicy: IfNotPresent
tag: "0.1.1"

Expand Down

0 comments on commit c55ca7f

Please sign in to comment.