Skip to content

Commit

Permalink
Merge pull request #2 from HoomanHQ/master
Browse files Browse the repository at this point in the history
Docker Build Workflow
  • Loading branch information
Massvdev authored Feb 19, 2024
2 parents 0471c2c + c42b569 commit 943cb02
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: ci

on:
push:
branches:
- 'master'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Generate tag with date and time
id: tag_date_time
run: echo "::set-output name=tag::$(date +'%Y%m%d-%H%M%S')"
shell: bash

- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/netaastrosl:${{ steps.tag_date_time.outputs.tag }}

- name: Print tag name
run: echo "new tag name:${{ steps.tag_date_time.outputs.tag }}"
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM node:20-alpine

RUN mkdir -p /app

WORKDIR /app

COPY . .

RUN npm install pnpm -g

RUN pnpm install

RUN pnpm run build

EXPOSE 4321

CMD ["pnpm", "start","--host","0.0.0.0"]


2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# NetaAstroSL - Neta Astro Starlight

Neta Astro Starlight is a lightweight general purpose DAO website built ontop of [Astro](https://astro.build/) that combines the neobrutalist theme [Brutal](https://brutal.elian.codes/) with support for astros leading documentation framework [Starlight](https://starlight.astro.build/)

# Brutal - The neobrutalist Astro theme

Brutal is a minimal neobrutalist theme for [Astro](https://astro.build/). It's based on Neobrutalist Web Design, a movement that aims to create websites with a minimalistic and functional design. It has some integrations like Image Optimization, RSS, Sitemap, ready to get your SEO done right.
Expand Down
31 changes: 31 additions & 0 deletions deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
version: "2.0"
services:
service-1:
image: yourusername/nestastrosl:tag
expose:
- port: 4321
as: 80
to:
- global: true
profiles:
compute:
service-1:
resources:
cpu:
units: 4
memory:
size: 2GB
storage:
- size: 2GB
placement:
dcloud:
pricing:
service-1:
denom: uakt
amount: 1000
deployment:
service-1:
dcloud:
profile: service-1
count: 1

0 comments on commit 943cb02

Please sign in to comment.