pipeline: backend: image: rust commands: - apt update - apt-get install -y --no-install-recommends nginx sudo - mkdir -p /etc/librepages/nginx/sites-available - mkdir -p /etc/librepages/nginx/sites-enabled/ - sed -i 's/include \/etc\/nginx\/sites-enabled/include \/etc\/librepages\/nginx\/sites-enabled/' /etc/nginx/nginx.conf - mkdir /var/www/website/ && echo "Hello Librepages" > /var/www/website/index.html # nginx_le_bind runs this command. # Testing beforehand to ensure it is setup properly - sudo nginx -t - make - make test - make release publish_bins: image: rust commands: - apt update - apt-get -y --no-install-recommends install gpg tar curl wget - echo -n "$RELEASE_BOT_GPG_SIGNING_KEY" | gpg --batch --import --pinentry-mode loopback - ./scripts/bin-publish.sh publish master latest $DUMBSERVE_PASSWORD secrets: [ RELEASE_BOT_GPG_SIGNING_KEY, DUMBSERVE_PASSWORD, GPG_PASSWORD ] publish: image: plugins/docker when: event: push branch: master settings: username: realaravinth password: from_secret: DOCKER_TOKEN repo: realaravinth/librepages-conductor tags: latest