Switched to GitHub Container Registry.
This commit is contained in:
parent
e9357b2c10
commit
b4a034d900
8
.github/workflows/build_images.yml
vendored
8
.github/workflows/build_images.yml
vendored
@ -55,9 +55,9 @@ jobs:
|
|||||||
- name: Build image
|
- name: Build image
|
||||||
working-directory: ${{ matrix.service.directory }}
|
working-directory: ${{ matrix.service.directory }}
|
||||||
env:
|
env:
|
||||||
DOCKER_BUILDKIT=1
|
DOCKER_BUILDKIT: 1
|
||||||
run: |
|
run: |
|
||||||
if [ ${{ matrix.service.args }} != "" ]
|
if [ "${{ matrix.service.args }}" != "" ]
|
||||||
then
|
then
|
||||||
export BUILD_ARGS="--build-arg MODULE=${{ matrix.service.args.MODULE }}
|
export BUILD_ARGS="--build-arg MODULE=${{ matrix.service.args.MODULE }}
|
||||||
--build-arg PORT=${{ matrix.service.args.PORT }}"
|
--build-arg PORT=${{ matrix.service.args.PORT }}"
|
||||||
@ -66,11 +66,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Log into registry
|
- name: Log into registry
|
||||||
run: echo "${{ secrets.GITHUB_TOKEN }}" |
|
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
|
- name: Push image
|
||||||
run: |
|
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
|
# Change all uppercase to lowercase
|
||||||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
|
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
|
||||||
|
6
.github/workflows/models.yml
vendored
6
.github/workflows/models.yml
vendored
@ -1,7 +1,9 @@
|
|||||||
name: Validate models.yml
|
---
|
||||||
|
name: Validate models.yml and initial and example data
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
env:
|
env:
|
||||||
PYTHON_VERSION: 3.8.5
|
PYTHON_VERSION: 3.8.5
|
||||||
|
GO_VERSION: 1.15
|
||||||
jobs:
|
jobs:
|
||||||
validate-models:
|
validate-models:
|
||||||
name: Validate models.yml
|
name: Validate models.yml
|
||||||
@ -10,7 +12,7 @@ jobs:
|
|||||||
- name: Set up Go 1.15
|
- name: Set up Go 1.15
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v1
|
||||||
with:
|
with:
|
||||||
go-version: 1.15
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -35,7 +35,7 @@ Create configuration files:
|
|||||||
Build and start Docker containers. According to your Docker installation you may
|
Build and start Docker containers. According to your Docker installation you may
|
||||||
have to run this as root:
|
have to run this as root:
|
||||||
|
|
||||||
$ docker-compose up --build --detach
|
$ docker-compose up --detach
|
||||||
|
|
||||||
Setup initial-data:
|
Setup initial-data:
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 2982c8880184cfab59a9792e79c62435ffc46f8d
|
Subproject commit d1bd161936e304c18336e3c1cc94609c8b39e952
|
Loading…
Reference in New Issue
Block a user