Skip to content

Commit

Permalink
Prepare v0.0.47
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar Oostendorp committed Dec 18, 2023
1 parent fdb2985 commit a348439
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 7 deletions.
96 changes: 96 additions & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
env:
IMAGE_NAME: ${{ github.repository }}
REGISTRY: ghcr.io
DEPLOY_NAME: demo

jobs:
buildImage:
Expand Down Expand Up @@ -48,3 +49,98 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=pixelaw/core:latest
cache-to: type=inline

helmTest:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Helm
run: |
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
- name: Lint Helm Chart
run: |
helm lint --values ./deployment/$DEPLOY_NAME/values.yaml ./deployment/$DEPLOY_NAME
helmRelease:
needs: [ helmTest ]
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
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@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.8.1

- name: custom packaging
run: |
VERSION=${{github.ref_name}}
rm -rf .cr-release-packages
mkdir -p .cr-release-packages
helm package deployment/$DEPLOY_NAME --app-version=${VERSION:1} --version=${VERSION:1} --destination=.cr-release-packages
- name: Run chart-releaser
# switch back to helm/chart-releaser-action if this contribution is ever mergedd
uses: askcloudarchitech/chart-releaser-action@skip-packaging-option
with:
skip_packaging: true
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Create GitHub Release
env:
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
TAG=${{ github.ref }}
VERSION=${TAG#refs/tags/}
gh release create $VERSION -t $VERSION -n "Release notes for $VERSION"
deploy:
needs: [ testImage ]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install ArgoCD CLI if not exists
run: |
if ! command -v argocd &> /dev/null; then
curl -sSL -o /usr/local/bin/argocd https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
chmod +x /usr/local/bin/argocd
fi
- name: Deploy Application Dry Run
env:
ARGOCD_SERVER: ${{ secrets.ARGOCD_SERVER }}
ARGOCD_AUTH_TOKEN: ${{ secrets.ARGOCD_AUTH_TOKEN }}
run: |
argocd app create $DEPLOY_NAME \
--repo https://pixelaw.github.io/core/ \
--path deployment/ \
--revision ${VERSION:1} \
--helm-chart $DEPLOY_NAME \
--dest-namespace $DEPLOY_NAME-main \
--dest-server https://kubernetes.default.svc \
--helm-set-string dockerImage=$REGISTRY/pixelaw-core:${VERSION} \
--upsert \
--server $ARGOCD_SERVER \
--auth-token $ARGOCD_AUTH_TOKEN
argocd app sync $DEPLOY_NAME
argocd app wait $DEPLOY_NAME
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
REPO = pixelaw/core
CORE_VERSION = 0.0.46
CORE_VERSION = 0.0.47
KEIKO_VERSION = v0.0.16


Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.46
0.0.47
2 changes: 1 addition & 1 deletion bots/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pixelaw-core-bots",
"version": "0.0.46",
"version": "0.0.47",
"description": "gets queueEvents and processes them",
"main": "index.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion contracts/Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
cairo-version = "2.4.0"
name = "pixelaw"
version = "0.0.46"
version = "0.0.47"
homepage = "https://github.com/pixelaw/core"

[cairo]
Expand Down
2 changes: 1 addition & 1 deletion deployment/demo/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ version: "0.0.45"
# 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.46"
appVersion: "0.0.47"
2 changes: 1 addition & 1 deletion deployment/test/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ version: "0.0.45"
# 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.46"
appVersion: "0.0.47"
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pixelaw-core-web",
"private": false,
"version": "0.0.46",
"version": "0.0.47",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down

0 comments on commit a348439

Please sign in to comment.