Use GitHub Container Registry (Scaleway seems to be unreliable)

This commit is contained in:
Jan-Lukas Else 2021-12-24 13:23:45 +01:00
parent 1be1564eb7
commit 2ac14e6f8e
3 changed files with 9 additions and 9 deletions

View File

@ -13,10 +13,10 @@ steps:
from_secret: docker_password from_secret: docker_password
commands: commands:
- sleep 5 # give docker enough time to start - sleep 5 # give docker enough time to start
- echo $DOCKER_PASSWORD | docker login --username nologin --password-stdin rg.fr-par.scw.cloud/jlelse - echo $DOCKER_PASSWORD | docker login --username jlelse --password-stdin ghcr.io
- DOCKER_BUILDKIT=1 docker build -t rg.fr-par.scw.cloud/jlelse/goblog:latest . --target base - DOCKER_BUILDKIT=1 docker build -t ghcr.io/jlelse/goblog:latest . --target base
- DOCKER_BUILDKIT=1 docker build -t rg.fr-par.scw.cloud/jlelse/goblog:tools . --target tools - DOCKER_BUILDKIT=1 docker build -t ghcr.io/jlelse/goblog:tools . --target tools
- docker push --all-tags rg.fr-par.scw.cloud/jlelse/goblog - docker push --all-tags ghcr.io/jlelse/goblog
services: services:
- name: docker - name: docker

View File

@ -4,7 +4,7 @@ There are two ways to build GoBlog:
## With Docker ## With Docker
(There are already pre-built images available at `rg.fr-par.scw.cloud/jlelse/goblog:latest` and `rg.fr-par.scw.cloud/jlelse/goblog:tools`) (There are already pre-built images available at `ghcr.io/jlelse/goblog:latest` and `ghcr.io/jlelse/goblog:tools`)
- Linux - Linux
- git - git
@ -15,13 +15,13 @@ Build command:
```bash ```bash
git clone https://git.jlel.se/jlelse/GoBlog.git git clone https://git.jlel.se/jlelse/GoBlog.git
cd GoBlog cd GoBlog
docker build -t rg.fr-par.scw.cloud/jlelse/goblog:latest . --target base docker build -t ghcr.io/jlelse/goblog:latest . --target base
``` ```
If you want to build and use the advanced image (with additional tools), execute: If you want to build and use the advanced image (with additional tools), execute:
```bash ```bash
docker build -t rg.fr-par.scw.cloud/jlelse/goblog:tools . --target tools docker build -t ghcr.io/jlelse/goblog:tools . --target tools
``` ```
## With Go installed ## With Go installed

View File

@ -1,6 +1,6 @@
# How to install and run GoBlog # How to install and run GoBlog
It's recommended to install GoBlog using Docker (Compose). You can simply pull the latest image from `rg.fr-par.scw.cloud/jlelse/goblog:latest` (basic image) or `rg.fr-par.scw.cloud/jlelse/goblog:tools` (for when you want to use `sqlite3`, `bash` or `curl` in hook commands) when there are updates. Those images are tested and contain all necessary libraries and tools. It's recommended to install GoBlog using Docker (Compose). You can simply pull the latest image from `ghcr.io/jlelse/goblog:latest` (basic image) or `ghcr.io/jlelse/goblog:tools` (for when you want to use `sqlite3`, `bash` or `curl` in hook commands) when there are updates. Those images are tested and contain all necessary libraries and tools.
Create your config file (`./config/config.yml`) with inspiration from `example-config.yml` and create a new data directory (`./data`). For static files, you can also create a directory at `./static`. Create your config file (`./config/config.yml`) with inspiration from `example-config.yml` and create a new data directory (`./data`). For static files, you can also create a directory at `./static`.
@ -11,7 +11,7 @@ version: "3"
services: services:
goblog: goblog:
container_name: goblog container_name: goblog
image: rg.fr-par.scw.cloud/jlelse/goblog:latest # or :tools image: ghcr.io/jlelse/goblog:latest # or :tools
restart: unless-stopped # auto restart the container restart: unless-stopped # auto restart the container
volumes: volumes:
- ./config:/app/config # Config directory - ./config:/app/config # Config directory