wip
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 23s

This commit is contained in:
2026-03-25 09:50:35 +03:00
parent aec1be6179
commit 516f3909ee
2 changed files with 22 additions and 28 deletions

View File

@@ -1,26 +1,27 @@
name: Gitea Actions Demo name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 run-name: Deploy 🚀
on: on:
push: push:
branches: branches:
- dev - main
jobs: jobs:
Explore-Gitea-Actions: Explore-Gitea-Actions:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event.." - name: Checkout repository
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" uses: actions/checkout@v6
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - name: Docker build
- name: Check out repository code run: docker build --tag git.madsky.ru/vadim/socket-service .
uses: actions/checkout@v3 - name: Login to gitea
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." uses: docker/login-action@v4
- run: echo "🖥️ The workflow is now ready to test your code on the runner!" with:
# - name: List files in the repository registry: git.madsky.ru
# run: | username: ${{ secrets.USERNAME }}
# ls ${{ gitea.workspace }} password: ${{ secrets.PASSWORD }}
# docker run -d --name tracker -p 3300:3000 git.madsky.ru/vadim/tracker:latest - name: Push Docker image to gitea registry
- name: List files in the repository
run: | run: |
ls ${{ gitea.workspace }} IMAGE_TAG="git.madsky.ru/vadim/socket-service:${{ gitea.sha }}"
- run: echo "🍏 This job's status is ${{ job.status }}." docker tag git.madsky.ru/vadim/socket-service $IMAGE_TAG
docker push $IMAGE_TAG
- name: Ready
run: echo "Success!"

View File

@@ -1,17 +1,10 @@
#FROM node:lts-alpine #FROM node:lts-alpine
FROM oven/bun:canary-alpine FROM oven/bun:canary-alpine
WORKDIR /app WORKDIR /app
COPY package.json ./
COPY package*.json ./ COPY package.json bun.lock ./
RUN npm install RUN bun install --frozen-lockfile
COPY . . COPY . .
RUN npm run build
RUN apk add --no-cache tzdata
ENV NODE_ENV=production ENV NODE_ENV=production
ENV TZ=Europe/Moscow
CMD ["node", "dist/main"]
EXPOSE 3000/tcp EXPOSE 3000/tcp
ENTRYPOINT [ "bun", "run", "index.ts" ] ENTRYPOINT [ "bun", "run", "src/index.ts" ]