mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-28 11:12:25 -05:00
[chore] Update build to use new woodpecker dind container, bump version numbers (#4073)
As described! Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4073 Co-authored-by: tobi <tobi.smethurst@protonmail.com> Co-committed-by: tobi <tobi.smethurst@protonmail.com>
This commit is contained in:
parent
7dae3364fa
commit
457ca3c9d3
3 changed files with 18 additions and 18 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
# https://woodpecker-ci.org/docs/usage/workflow-syntax#when---global-workflow-conditions
|
||||||
|
when:
|
||||||
|
- event: tag
|
||||||
|
|
||||||
# https://goreleaser.com/ci/woodpecker/
|
# https://goreleaser.com/ci/woodpecker/
|
||||||
# https://woodpecker-ci.org/docs/usage/workflow-syntax#clone
|
# https://woodpecker-ci.org/docs/usage/workflow-syntax#clone
|
||||||
clone:
|
clone:
|
||||||
|
|
@ -6,14 +10,10 @@ clone:
|
||||||
settings:
|
settings:
|
||||||
tags: true
|
tags: true
|
||||||
|
|
||||||
# https://woodpecker-ci.org/docs/usage/workflow-syntax#when---global-workflow-conditions
|
|
||||||
when:
|
|
||||||
- event: tag
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
release:
|
release:
|
||||||
# https://codeberg.org/superseriousbusiness/gotosocial-drone-build
|
# https://codeberg.org/superseriousbusiness/gotosocial-woodpecker-build
|
||||||
image: superseriousbusiness/gotosocial-drone-build:0.8.0
|
image: superseriousbusiness/gotosocial-woodpecker-build:0.10.0
|
||||||
pull: true
|
pull: true
|
||||||
|
|
||||||
# https://woodpecker-ci.org/docs/usage/volumes
|
# https://woodpecker-ci.org/docs/usage/volumes
|
||||||
|
|
@ -39,10 +39,10 @@ steps:
|
||||||
# When releasing, compare commits to the most recent tag that is not the
|
# When releasing, compare commits to the most recent tag that is not the
|
||||||
# current one AND is not a release candidate tag (ie., no "rc" in the name).
|
# current one AND is not a release candidate tag (ie., no "rc" in the name).
|
||||||
#
|
#
|
||||||
# The DRONE_TAG env var should point to the tag that triggered this build.
|
# The CI_COMMIT_TAG env var should point to the tag that triggered this build.
|
||||||
# See: https://docs.drone.io/pipeline/environment/reference/drone-tag/
|
# See: https://woodpecker-ci.org/docs/usage/environment
|
||||||
#
|
#
|
||||||
# Note, this may cause annoyances when doing backport releases, for example,
|
# Note, this may cause annoyances when doing backport releases, for example,
|
||||||
# releasing v0.10.1 when we've already released v0.15.0 or whatever, but
|
# releasing v0.10.1 when we've already released v0.15.0 or whatever, but
|
||||||
# they should only be superficial annoyances related to the release notes.
|
# they should only be superficial annoyances related to the release notes.
|
||||||
- GORELEASER_PREVIOUS_TAG=$(git tag -l | grep -v "rc\|${DRONE_TAG}" | sort -V -r | head -n 1) goreleaser release --clean
|
- GORELEASER_PREVIOUS_TAG=$(git tag -l | grep -v "rc\|${CI_COMMIT_TAG}" | sort -V -r | head -n 1) goreleaser release --clean
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
# https://woodpecker-ci.org/docs/usage/workflow-syntax#when---global-workflow-conditions
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
branch: main
|
||||||
|
|
||||||
# https://goreleaser.com/ci/woodpecker/
|
# https://goreleaser.com/ci/woodpecker/
|
||||||
# https://woodpecker-ci.org/docs/usage/workflow-syntax#clone
|
# https://woodpecker-ci.org/docs/usage/workflow-syntax#clone
|
||||||
clone:
|
clone:
|
||||||
|
|
@ -6,15 +11,10 @@ clone:
|
||||||
settings:
|
settings:
|
||||||
tags: true
|
tags: true
|
||||||
|
|
||||||
# https://woodpecker-ci.org/docs/usage/workflow-syntax#when---global-workflow-conditions
|
|
||||||
when:
|
|
||||||
- event: push
|
|
||||||
branch: main
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
snapshot:
|
snapshot:
|
||||||
# https://codeberg.org/superseriousbusiness/gotosocial-drone-build
|
# https://codeberg.org/superseriousbusiness/gotosocial-woodpecker-build
|
||||||
image: superseriousbusiness/gotosocial-drone-build:0.8.0
|
image: superseriousbusiness/gotosocial-woodpecker-build:0.10.0
|
||||||
pull: true
|
pull: true
|
||||||
|
|
||||||
# https://woodpecker-ci.org/docs/usage/volumes
|
# https://woodpecker-ci.org/docs/usage/volumes
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
# Dockerfile reference: https://docs.docker.com/engine/reference/builder/
|
# Dockerfile reference: https://docs.docker.com/engine/reference/builder/
|
||||||
|
|
||||||
# stage 1: generate the web/assets/dist bundles
|
# stage 1: generate the web/assets/dist bundles
|
||||||
FROM --platform=${BUILDPLATFORM} node:18-alpine AS bundler
|
FROM --platform=${BUILDPLATFORM} node:lts-alpine AS bundler
|
||||||
|
|
||||||
COPY web web
|
COPY web web
|
||||||
RUN yarn --cwd ./web/source install && \
|
RUN yarn --cwd ./web/source install && \
|
||||||
|
|
@ -11,7 +11,7 @@ RUN yarn --cwd ./web/source install && \
|
||||||
rm -rf ./web/source
|
rm -rf ./web/source
|
||||||
|
|
||||||
# stage 2: build the executor container
|
# stage 2: build the executor container
|
||||||
FROM --platform=${TARGETPLATFORM} alpine:3.20 as executor
|
FROM --platform=${TARGETPLATFORM} alpine:3.21 AS executor
|
||||||
|
|
||||||
# switch to non-root user:group for GtS
|
# switch to non-root user:group for GtS
|
||||||
USER 1000:1000
|
USER 1000:1000
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue