2021-04-09 16:28:17 -05:00
|
|
|
#
|
|
|
|
# This guy is awesome: https://dev.to/bzinoun/gitlab-ci-to-build-and-push-containers-to-registry-538a
|
|
|
|
#
|
|
|
|
|
|
|
|
image: morlay/buildx:607a2ce
|
|
|
|
variables:
|
|
|
|
# DinD's vfs driver is pretty intensive; this is less so
|
|
|
|
DOCKER_DRIVER: overlay2
|
|
|
|
CI_HUB_USERNAME: rehashedsalt
|
|
|
|
CI_PROJECT_NAME: minecraft-forge
|
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
before_script:
|
|
|
|
- echo -n "$CI_LOGIN_PASSWORD" | docker login -u "$CI_LOGIN_USERNAME" --password-stdin
|
|
|
|
- docker version
|
|
|
|
- docker info
|
2021-05-22 00:07:13 -05:00
|
|
|
- apk add bash
|
2021-04-09 16:28:17 -05:00
|
|
|
after_script:
|
|
|
|
- docker logout hub.docker.com
|
|
|
|
|
|
|
|
# BUILD
|
|
|
|
Build:
|
|
|
|
stage: build
|
|
|
|
script:
|
2021-05-22 00:07:13 -05:00
|
|
|
- bash build.sh
|