--tag discourse/base:aarch64-slim
docker tag discourse/base:aarch64-slim localhost:5000/discourse/base:aarch64-slim
docker push localhost:5000/discourse/base:aarch64-slim
- - name: build release image
+ - name: release slim image as release
working-directory: image/base
run: |
- docker buildx create --name builder --use --driver-opt network=host
- docker buildx build . --load \
- -f release.Dockerfile \
- --platform linux/arm64 \
- --network=host \
- --build-arg from=localhost:5000/discourse/base \
- --build-arg tag=aarch64-slim \
- --tag discourse/base:aarch64
+ docker tag discourse/base:aarch64 localhost:5000/discourse/base:aarch64-slim
+ docker push localhost:5000/discourse/base:aarch64
- name: Print summary
run: docker images discourse/base
- name: push to dockerhub
- bash -c "ln -s /shared/tmp/{backups,restores} $home/tmp"
- chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
# scrub broken symlinks from plugins that have been removed
- - find public/plugins/ -maxdepth 1 -xtype l -delete
+ - "[ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete"
- exec:
cmd:
- exec:
cd: $home
cmd:
- - "[ ! -d 'node_modules' ] || su discourse -c 'yarn install --production --frozen-lockfile && yarn cache clean'"
+ - su discourse -c 'yarn install --production --frozen-lockfile && yarn cache clean'
- exec:
cd: $home