mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-21 22:36:22 +00:00
BREAKING CHANGE: deprecar alpine 3.14
This commit is contained in:
parent
a03c549c3f
commit
167c128927
2 changed files with 3 additions and 53 deletions
|
@ -19,7 +19,6 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- "rails"
|
- "rails"
|
||||||
- "panel.sutty.nl"
|
|
||||||
- "17.3.alpine.panel.sutty.nl"
|
- "17.3.alpine.panel.sutty.nl"
|
||||||
event: "push"
|
event: "push"
|
||||||
path:
|
path:
|
||||||
|
@ -27,57 +26,8 @@ pipeline:
|
||||||
- "Dockerfile"
|
- "Dockerfile"
|
||||||
- ".dockerignore"
|
- ".dockerignore"
|
||||||
- ".woodpecker.yml"
|
- ".woodpecker.yml"
|
||||||
assets:
|
|
||||||
image: "gitea.nulo.in/sutty/panel:3.14.10-2.7.8"
|
|
||||||
commands:
|
|
||||||
- "apk add python2 dotenv openssh-client brotli"
|
|
||||||
- "install -d -m 700 ~/.ssh/"
|
|
||||||
- "echo \"$${KNOWN_HOSTS}\" | base64 -d >> ~/.ssh/known_hosts"
|
|
||||||
- "chmod 600 ~/.ssh/known_hosts"
|
|
||||||
- "eval $(ssh-agent -s)"
|
|
||||||
- "echo \"$${SSH_KEY}\" | base64 -d | ssh-add -"
|
|
||||||
- "ssh $${ORIGIN%:*}"
|
|
||||||
- "git config user.name Woodpecker"
|
|
||||||
- "git config user.email ci@sutty.coop.ar"
|
|
||||||
- "git remote add upstream $${ORIGIN}"
|
|
||||||
- "git checkout -B ${CI_COMMIT_BRANCH}"
|
|
||||||
- "mv config/credentials.yml.enc.ci config/credentials.yml.enc"
|
|
||||||
- "yarn"
|
|
||||||
- "cp .env.example .env"
|
|
||||||
- "dotenv bundle install --path=vendor"
|
|
||||||
- "dotenv RAILS_ENV=production bundle exec rails webpacker:clobber"
|
|
||||||
- "dotenv RAILS_ENV=production bundle exec rails assets:precompile"
|
|
||||||
- "dotenv RAILS_ENV=production bundle exec rails assets:clean"
|
|
||||||
- "find public -type f -print0 | xargs -r0 brotli -k9f"
|
|
||||||
- "git add public && git commit -m \"ci: assets [skip ci]\""
|
|
||||||
- "git pull upstream ${CI_COMMIT_BRANCH}"
|
|
||||||
- "git push upstream ${CI_COMMIT_BRANCH}"
|
|
||||||
environment:
|
|
||||||
- "RUBY_VERSION=${RUBY_VERSION}"
|
|
||||||
- "GEMS_SOURCE=https://14.3.alpine.gems.sutty.nl"
|
|
||||||
secrets:
|
|
||||||
- "SSH_KEY"
|
|
||||||
- "KNOWN_HOSTS"
|
|
||||||
- "ORIGIN"
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- "rails"
|
|
||||||
- "panel.sutty.nl"
|
|
||||||
path:
|
|
||||||
include:
|
|
||||||
- "app/assets/**/*"
|
|
||||||
- "app/javascript/**/*"
|
|
||||||
- "package.json"
|
|
||||||
- "yarn.lock"
|
|
||||||
matrix:
|
|
||||||
ALPINE_VERSION: "3.14.10"
|
|
||||||
RUBY_VERSION: "2.7"
|
|
||||||
RUBY_PATCH: "8"
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- ALPINE_VERSION: "3.17.3"
|
- ALPINE_VERSION: "3.17.3"
|
||||||
RUBY_VERSION: "3.1"
|
RUBY_VERSION: "3.1"
|
||||||
RUBY_PATCH: "4"
|
RUBY_PATCH: "4"
|
||||||
- ALPINE_VERSION: "3.14.10"
|
|
||||||
RUBY_VERSION: "2.7"
|
|
||||||
RUBY_PATCH: "8"
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
ARG RUBY_VERSION=2.7
|
ARG RUBY_VERSION=3.1
|
||||||
ARG RUBY_PATCH=6
|
ARG RUBY_PATCH=4
|
||||||
ARG ALPINE_VERSION=3.13.10
|
ARG ALPINE_VERSION=3.17.3
|
||||||
ARG BASE_IMAGE=registry.nulo.in/sutty/rails
|
ARG BASE_IMAGE=registry.nulo.in/sutty/rails
|
||||||
FROM ${BASE_IMAGE}:${ALPINE_VERSION}-${RUBY_VERSION}.${RUBY_PATCH}
|
FROM ${BASE_IMAGE}:${ALPINE_VERSION}-${RUBY_VERSION}.${RUBY_PATCH}
|
||||||
ARG PANDOC_VERSION=2.18
|
ARG PANDOC_VERSION=2.18
|
||||||
|
|
Loading…
Reference in a new issue