ci, chore: separate upend-deploy and upend-package images

feat/type-attributes
Tomáš Mládek 2023-08-17 20:53:40 +02:00
parent cb2f03ad27
commit ac842f0f56
4 changed files with 25 additions and 11 deletions

View File

@ -155,7 +155,7 @@ pipeline:
event: push
package:
image: albedo.lan:5000/upend-deploy:latest
image: albedo.lan:5000/upend-package:latest
pull: true
commands:
- git status -vvv

View File

@ -145,7 +145,13 @@ tasks:
- pnpm install --frozen-lockfile
build:docker:
deps: [build:docker:node, build:docker:rust, build:docker:deploy]
deps:
[
build:docker:node,
build:docker:rust,
build:docker:package,
build:docker:deploy,
]
build:docker:node:
dir: build/upend-node
@ -157,7 +163,13 @@ tasks:
cmds:
- docker build --pull -t upend-rust -t localhost:5000/upend-rust .
build:docker:package:
dir: build/docker-package
cmds:
- docker build --pull -t upend-package -t localhost:5000/upend-package .
build:docker:deploy:
deps: [build:docker:rust]
dir: build/upend-deploy
cmds:
- docker build --pull -t upend-deploy -t localhost:5000/upend-deploy .

View File

@ -1,9 +1,3 @@
FROM debian
RUN apt-get update && apt-get -y install wget curl file git gnupg openssh-client && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
RUN wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage && \
chmod +x linuxdeploy-x86_64.AppImage && \
./linuxdeploy-x86_64.AppImage --appimage-extract && \
ln -s $PWD/squashfs-root/AppRun /usr/local/bin/linuxdeploy-x86_64.AppImage
FROM alpine
RUN apk add git gpg openssh-client
RUN sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin

View File

@ -0,0 +1,8 @@
FROM upend-rust
RUN apt-get update && apt-get -y install wget curl file && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage && \
chmod +x linuxdeploy-x86_64.AppImage && \
./linuxdeploy-x86_64.AppImage --appimage-extract && \
ln -s $PWD/squashfs-root/AppRun /usr/local/bin/linuxdeploy-x86_64.AppImage