Skip to content

Commit

Permalink
chore: dependency update and fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
leon3s committed Nov 18, 2024
1 parent 620c8a8 commit a0d3447
Show file tree
Hide file tree
Showing 6 changed files with 2,823 additions and 2,143 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and publish Docker image
name: Build and publish docker image

on:
push:
Expand All @@ -7,7 +7,7 @@ on:

jobs:
deploy:
name: Build and publish Docker image
name: Build and publish docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -23,7 +23,7 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract version from package.json
id: extract_version
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:

- name: Install nanocl cli
run: |
wget https://github.com/next-hat/nanocl/releases/download/nanocl-0.15.0/nanocl_0.15.0_amd64.deb
sudo dpkg -i nanocl_0.15.0_amd64.deb
rm nanocl_0.15.0_amd64.deb
wget https://github.com/next-hat/nanocl/releases/download/nanocl-0.16.1-nightly/nanocl_0.16.1_amd64.deb
sudo dpkg -i nanocl_0.16.1_amd64.deb
rm nanocl_0.16.1_amd64.deb
- name: Deploy to production
run: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.15.1-alpine AS builder
FROM node:22.11.0-alpine AS builder

RUN apk add git

Expand Down
23 changes: 14 additions & 9 deletions Statefile.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
ApiVersion: v0.15

Args:
- Name: version
Kind: String
ApiVersion: v0.16

Namespace: ntex

Cargoes:
- Name: website
- Name: doc
ImagePullPolicy: Always
ImagePullSecret: registry.ghcr.io
Container:
Image: ntex-rs/website:${{ Args.version }}
Image: ghcr.io/ntex-rs/website:2.0.3

Resources:
- Name: ntex.rs
- Name: http.ntex.rs
Kind: ncproxy.io/rule
Data:
Rules:
Expand All @@ -22,5 +20,12 @@ Resources:
Locations:
- Path: /
Target:
Key: website.ntex.c
Key: doc.ntex.c
Port: 80
- Domain: ntex.rs
Network: Public
Locations:
- Path: /
Target:
Url: https://ntex.rs
Redirect: Temporary
Loading

0 comments on commit a0d3447

Please sign in to comment.