Switched to GitHub Container Registry.

This commit is contained in:
Norman Jäckel 2021-04-30 11:19:21 +02:00
parent e9357b2c10
commit b4a034d900
4 changed files with 10 additions and 8 deletions

View File

@ -55,9 +55,9 @@ jobs:
- name: Build image
working-directory: ${{ matrix.service.directory }}
env:
DOCKER_BUILDKIT=1
DOCKER_BUILDKIT: 1
run: |
if [ ${{ matrix.service.args }} != "" ]
if [ "${{ matrix.service.args }}" != "" ]
then
export BUILD_ARGS="--build-arg MODULE=${{ matrix.service.args.MODULE }}
--build-arg PORT=${{ matrix.service.args.PORT }}"
@ -66,11 +66,11 @@ jobs:
- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" |
docker login docker.pkg.github.com --username ${{ github.actor }} --password-stdin
docker login ghcr.io --username ${{ github.actor }} --password-stdin
- name: Push image
run: |
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/${{ matrix.service.name }}
IMAGE_ID=ghcr.io/${{ github.repository }}/${{ matrix.service.name }}
# Change all uppercase to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')

View File

@ -1,7 +1,9 @@
name: Validate models.yml
---
name: Validate models.yml and initial and example data
on: [push, pull_request]
env:
PYTHON_VERSION: 3.8.5
GO_VERSION: 1.15
jobs:
validate-models:
name: Validate models.yml
@ -10,7 +12,7 @@ jobs:
- name: Set up Go 1.15
uses: actions/setup-go@v1
with:
go-version: 1.15
go-version: ${{ env.GO_VERSION }}
- name: Check out code
uses: actions/checkout@v2

View File

@ -35,7 +35,7 @@ Create configuration files:
Build and start Docker containers. According to your Docker installation you may
have to run this as root:
$ docker-compose up --build --detach
$ docker-compose up --detach
Setup initial-data:

@ -1 +1 @@
Subproject commit 2982c8880184cfab59a9792e79c62435ffc46f8d
Subproject commit d1bd161936e304c18336e3c1cc94609c8b39e952