Skip to content
This repository has been archived by the owner on May 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #16 from Circle-1/dev
Browse files Browse the repository at this point in the history
Add auto version of docker image
  • Loading branch information
alphaX86 authored Oct 25, 2021
2 parents 473149f + ca362a5 commit 223d24e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 11 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Docker Image CI

on:
release:
types: [created]
push:
tags:
- 'v*.*.*'
branches:
- "main"

jobs:
docker:
Expand All @@ -14,6 +17,20 @@ jobs:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: aerox86/stock-x
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
Expand All @@ -29,5 +46,4 @@ jobs:
with:
context: .
push: true
tags: aerox86/stock-x:latest-stable

tags: ${{ steps.meta.outputs.tags }}
6 changes: 4 additions & 2 deletions k8s/helm/stock/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.1
version: 0.1.0

home: https://github.com/Circle-1/Stock-X

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.0.3"
appVersion: "latest-stable"

deprecated: false

Expand Down
9 changes: 4 additions & 5 deletions k8s/helm/stock/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
replicaCount: 1
restartPolicy: Always


image:
name: aerox86/stock-x
tag: 'latest-stable'
pullPolicy: Always
tag: latest-stable

imagePullSecrets: []
nameOverride: "stock-x"
Expand Down Expand Up @@ -38,8 +37,8 @@ securityContext: {}
# runAsUser: 1000

service:
type: ClusterIP
port: 80
type: LoadBalancer
port: 8080

ingress:
enabled: false
Expand Down Expand Up @@ -73,7 +72,7 @@ autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 60
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

nodeSelector: {}
Expand Down

0 comments on commit 223d24e

Please sign in to comment.