Commit 83951fcc authored by M4xw's avatar M4xw 🍗

Merge branch 'feature/image' into 'develop'

[CICD] Added image building and pushing

See merge request !1
parents dd4d40d1 c0c3b822
image: docker:latest
stages:
- build
- notify
services:
- docker:dind
before_script:
- docker info
- docker login -u $USER -p $PASSWD
build:
stage: build
script:
- docker build -t $USER/libnx .
- docker push $USER/libnx:latest
only:
- master
notify:
stage: notify
script:
- "curl -X POST -F token=$TOKEN_SNES9X2010 -F ref=master https://git.m4xw.net/api/v4/projects/87/trigger/pipeline"
- "curl -X POST -F token=$TOKEN_FCEUMM -F ref=master https://git.m4xw.net/api/v4/projects/85/trigger/pipeline"
- "curl -X POST -F token=$TOKEN_VBANEXT -F ref=master https://git.m4xw.net/api/v4/projects/83/trigger/pipeline"
- "curl -X POST -F token=$TOKEN_SNES9X -F ref=master https://git.m4xw.net/api/v4/projects/80/trigger/pipeline"
- "curl -X POST -F token=$TOKEN_BEETLE_WSWAN -F ref=master https://git.m4xw.net/api/v4/projects/84/trigger/pipeline"
- "curl -X POST -F token=$TOKEN_BEETLE_VBOY -F ref=master https://git.m4xw.net/api/v4/projects/92/trigger/pipeline"
only:
- master
when: on_success
FROM devkitpro/devkita64
ARG uid
RUN apt-get update && \
apt-get install -y unzip && \
dkp-pacman -S --noconfirm devkitARM && \
rm -rf /opt/devkitpro/libnx && \
wget -O libnx.zip "https://git.m4xw.net/Switch/RetroArch/libnx/-/jobs/artifacts/master/download?job=package" && \
unzip libnx.zip -d /opt/devkitpro/ && \
useradd -d /developer -m developer && \
chown -R developer:developer /developer
ENV HOME=/developer
ENV DEVKITPRO=/opt/devkitpro
ENV DEVKITARM=/opt/devkitpro/devkitARM
USER developer
WORKDIR /developer
VOLUME /developer
CMD make
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment