/gotosocial-drone-build

Dockerfiles for building GoToSocial with Drone CI

Primary LanguageDockerfile

gotosocial-drone-build

Dockerized build environment for GoToSocial CI.

The built (Alpine-based) container at Docker hub tag superseriousbusiness/gotosocial-drone-build contains the following tools:

How to use this container

Put all your source files in the container. Build them manually or with GoReleaser. See here for an example that uses all the tools šŸ¦„

Can I build this container manually?

Absolutely you can!

docker build \
    --build-arg GORELEASER_VERSION=[goreleaser version number] \
    --build-arg GO_SWAGGER_VERSION=[goswagger version number] \
    --build-arg DOCKER_BUILDX_VERSION=[buildx version number] \
    --build-arg GO_CONTAINER_VERSION=[go version number] \
    -t superseriousbusiness/gotosocial-drone-build:[gotosocial-drone-build version number] \
    .

Just fill in the version numbers in the above script and you're good to go.

Alternatively, if you have niet installed (yaml parser for Python), just call the build script with ./build.sh. Version numbers will be injected automatically based on what's in .drone.yml.

Updating the container

Bump the version numbers in .drone.yml, sign the file, create a new tag, and push it.

Signing:

drone -t PUT_YOUR_DRONE_ADMIN_TOKEN_HERE -s https://drone.superseriousbusiness.org sign superseriousbusiness/gotosocial-drone-build --save