fix: move updates into light and release

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
Andrew Calcutt 2023-10-25 00:15:46 -04:00
parent 6f4cdc4227
commit 404acbf05e
2 changed files with 12 additions and 9 deletions

View file

@ -66,12 +66,12 @@ jobs:
echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | head -n 1)" >> $GITHUB_ENV echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | head -n 1)" >> $GITHUB_ENV
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v3
with: with:
platforms: 'arm64' platforms: 'arm64'
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v3
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v2 uses: docker/login-action@v2
@ -80,7 +80,7 @@ jobs:
password: ${{ github.event.inputs.docker_token }} password: ${{ github.event.inputs.docker_token }}
- name: Build and publish Full Version to Docker Hub - name: Build and publish Full Version to Docker Hub
uses: docker/build-push-action@v4 uses: docker/build-push-action@v5
with: with:
context: . context: .
push: true push: true
@ -106,7 +106,7 @@ jobs:
NPM_TOKEN: ${{ github.event.inputs.npm_token }} NPM_TOKEN: ${{ github.event.inputs.npm_token }}
- name: Build and publish Light Version to Docker Hub - name: Build and publish Light Version to Docker Hub
uses: docker/build-push-action@v4 uses: docker/build-push-action@v5
with: with:
context: ./light context: ./light
file: ./light/Dockerfile file: ./light/Dockerfile

View file

@ -12,10 +12,13 @@ RUN set -ex; \
apt-get -qq update; \ apt-get -qq update; \
apt-get -y --no-install-recommends install \ apt-get -y --no-install-recommends install \
ca-certificates \ ca-certificates \
wget; \ curl \
wget -qO- https://deb.nodesource.com/setup_18.x | bash; \ gnupg; \
apt-get install -y nodejs; \ mkdir -p /etc/apt/keyrings; \
apt-get -y remove wget; \ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg; \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list; \
apt-get -qq update; \
apt-get -y remove curl gnupg; \
apt-get -y --purge autoremove; \ apt-get -y --purge autoremove; \
apt-get clean; \ apt-get clean; \
rm -rf /var/lib/apt/lists/*; rm -rf /var/lib/apt/lists/*;
@ -33,7 +36,7 @@ WORKDIR /data
COPY / /usr/src/app COPY / /usr/src/app
RUN cd /usr/src/app; \ RUN cd /usr/src/app; \
npm install --omit=dev; \ npm install --omit=dev --maxsockets 1; \
chown -R root:root /usr/src/app; \ chown -R root:root /usr/src/app; \
chmod +x /usr/src/app/docker-entrypoint.sh; chmod +x /usr/src/app/docker-entrypoint.sh;