-
-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (47 loc) · 1.55 KB
/
docker-dev.yml
File metadata and controls
49 lines (47 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Build Docker development images
permissions: {}
# Allow the images to be built manually until we have CI set up
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm/v8
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Build and tag Docker images
env:
REPOSITORY: ${{ github.repository }}
run: |
docker build --tag ghcr.io/${REPOSITORY}/realtimeserver:latest \
--build-arg MIGRATOR_ENVIRONMENT=Development \
-f src/RealtimeServer/Dockerfile .
docker build --tag ghcr.io/${REPOSITORY}:latest \
--build-arg AngularConfig=development \
--build-arg configuration=Debug \
--build-arg version=9.9.9 \
-f src/SIL.XForge.Scripture/Dockerfile .
- name: Login to GitHub Container Registry
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Push Docker images
env:
REPOSITORY: ${{ github.repository }}
run: |
set -xueo pipefail
docker push ghcr.io/${REPOSITORY}/realtimeserver:latest
docker push ghcr.io/${REPOSITORY}:latest