New: Automatic Docker container builds #1
47
.gitea/workflows/build-docker-container.yml
Normal file
47
.gitea/workflows/build-docker-container.yml
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
name: build-docker-imge
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build the docker container
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: "Git clone"
|
||||||
|
run: git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git .
|
||||||
|
- name: "LS"
|
||||||
|
run: ls -lisa
|
||||||
|
- name: "LS ECHO"
|
||||||
|
run: echo "$(ls)" "${{ gitea.repository }}" "${{ gitea.ref_name }}" "${{ gitea.sha }}"
|
||||||
|
- name: "Git checkout"
|
||||||
|
run: git checkout "${{ gitea.sha }}"
|
||||||
|
- uses: aevea/action-kaniko@master
|
||||||
|
name: Run Kaniko to build our docker container.
|
||||||
|
with:
|
||||||
|
image: kocoded/nachhilfesystem/nachhilfesystem
|
||||||
|
tag: api
|
||||||
|
registry: git.kocoder.xyz
|
||||||
|
username: ${{ secrets.CI_RUNNER_USER }}
|
||||||
|
password: ${{ secrets.CI_RUNNER_TOKEN }}
|
||||||
|
build_file: Dockerfile
|
||||||
|
target: api_serve
|
||||||
|
- uses: aevea/action-kaniko@master
|
||||||
|
name: Run Kaniko to build our docker container.
|
||||||
|
with:
|
||||||
|
image: kocoded/nachhilfesystem/nachhilfesystem
|
||||||
|
tag: web
|
||||||
|
registry: git.kocoder.xyz
|
||||||
|
username: ${{ secrets.CI_RUNNER_USER }}
|
||||||
|
password: ${{ secrets.CI_RUNNER_TOKEN }}
|
||||||
|
build_file: Dockerfile
|
||||||
|
target: web_serve
|
||||||
|
- uses: aevea/action-kaniko@master
|
||||||
|
name: Run Kaniko to build our docker container.
|
||||||
|
with:
|
||||||
|
image: kocoded/nachhilfesystem/nachhilfesystem
|
||||||
|
tag: console
|
||||||
|
registry: git.kocoder.xyz
|
||||||
|
username: ${{ secrets.CI_RUNNER_USER }}
|
||||||
|
password: ${{ secrets.CI_RUNNER_TOKEN }}
|
||||||
|
build_file: Dockerfile
|
||||||
|
target: console
|
925
.yarn/releases/yarn-4.4.0.cjs
vendored
Executable file
925
.yarn/releases/yarn-4.4.0.cjs
vendored
Executable file
File diff suppressed because one or more lines are too long
10
.yarnrc.yml
10
.yarnrc.yml
|
@ -1,15 +1,9 @@
|
||||||
# Yarn's manifest file. You can configure yarn here.
|
|
||||||
# See https://yarnpkg.com/configuration/yarnrc.
|
|
||||||
|
|
||||||
# For `node_modules` (see `nodeLinker` below), this is almost always the preferred option.
|
|
||||||
compressionLevel: 0
|
compressionLevel: 0
|
||||||
|
|
||||||
enableGlobalCache: true
|
enableGlobalCache: true
|
||||||
|
|
||||||
# Lets yarn use hardlinks inside `node_modules` to dedupe packages.
|
|
||||||
# For a more pnpm-like experience, consider `hardlinks-global` where hardlinks point to a global store.
|
|
||||||
nmMode: hardlinks-local
|
nmMode: hardlinks-local
|
||||||
|
|
||||||
# How to install Node packages.
|
|
||||||
# Heads up: right now, Redwood expects this to be `node-modules`.
|
|
||||||
nodeLinker: node-modules
|
nodeLinker: node-modules
|
||||||
|
|
||||||
|
yarnPath: .yarn/releases/yarn-4.4.0.cjs
|
||||||
|
|
|
@ -19,6 +19,7 @@ COPY --chown=node:node package.json .
|
||||||
COPY --chown=node:node api/package.json api/
|
COPY --chown=node:node api/package.json api/
|
||||||
COPY --chown=node:node web/package.json web/
|
COPY --chown=node:node web/package.json web/
|
||||||
COPY --chown=node:node yarn.lock .
|
COPY --chown=node:node yarn.lock .
|
||||||
|
COPY --chown=node:node .yarn/releases/yarn-4.4.0.cjs .yarn/releases/
|
||||||
|
|
||||||
RUN mkdir -p /home/node/.yarn/berry/index
|
RUN mkdir -p /home/node/.yarn/berry/index
|
||||||
RUN mkdir -p /home/node/.cache
|
RUN mkdir -p /home/node/.cache
|
||||||
|
@ -82,6 +83,7 @@ COPY --chown=node:node .yarnrc.yml .
|
||||||
COPY --chown=node:node package.json .
|
COPY --chown=node:node package.json .
|
||||||
COPY --chown=node:node api/package.json api/
|
COPY --chown=node:node api/package.json api/
|
||||||
COPY --chown=node:node yarn.lock .
|
COPY --chown=node:node yarn.lock .
|
||||||
|
COPY --chown=node:node .yarn/releases/yarn-4.4.0.cjs .yarn/releases/
|
||||||
|
|
||||||
RUN mkdir -p /home/node/.yarn/berry/index
|
RUN mkdir -p /home/node/.yarn/berry/index
|
||||||
RUN mkdir -p /home/node/.cache
|
RUN mkdir -p /home/node/.cache
|
||||||
|
@ -122,6 +124,7 @@ COPY --chown=node:node .yarnrc.yml .
|
||||||
COPY --chown=node:node package.json .
|
COPY --chown=node:node package.json .
|
||||||
COPY --chown=node:node web/package.json web/
|
COPY --chown=node:node web/package.json web/
|
||||||
COPY --chown=node:node yarn.lock .
|
COPY --chown=node:node yarn.lock .
|
||||||
|
COPY --chown=node:node .yarn/releases/yarn-4.4.0.cjs .yarn/releases/
|
||||||
|
|
||||||
RUN mkdir -p /home/node/.yarn/berry/index
|
RUN mkdir -p /home/node/.yarn/berry/index
|
||||||
RUN mkdir -p /home/node/.cache
|
RUN mkdir -p /home/node/.cache
|
||||||
|
|
|
@ -20856,11 +20856,11 @@ __metadata:
|
||||||
|
|
||||||
"typescript@patch:typescript@npm%3A5.6.2#optional!builtin<compat/typescript>":
|
"typescript@patch:typescript@npm%3A5.6.2#optional!builtin<compat/typescript>":
|
||||||
version: 5.6.2
|
version: 5.6.2
|
||||||
resolution: "typescript@patch:typescript@npm%3A5.6.2#optional!builtin<compat/typescript>::version=5.6.2&hash=8c6c40"
|
resolution: "typescript@patch:typescript@npm%3A5.6.2#optional!builtin<compat/typescript>::version=5.6.2&hash=74658d"
|
||||||
bin:
|
bin:
|
||||||
tsc: bin/tsc
|
tsc: bin/tsc
|
||||||
tsserver: bin/tsserver
|
tsserver: bin/tsserver
|
||||||
checksum: 10c0/94eb47e130d3edd964b76da85975601dcb3604b0c848a36f63ac448d0104e93819d94c8bdf6b07c00120f2ce9c05256b8b6092d23cf5cf1c6fa911159e4d572f
|
checksum: 10c0/e6c1662e4852e22fe4bbdca471dca3e3edc74f6f1df043135c44a18a7902037023ccb0abdfb754595ca9028df8920f2f8492c00fc3cbb4309079aae8b7de71cd
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user