forked from akamicah/overte-domain-server-docker
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from terminalx-resonite/fix/deploy-yaml
Fixed Yaml Syntax error
- Loading branch information
Showing
1 changed file
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,32 @@ | ||
--- | ||
name: Build and Push Domain Server Images | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- testing | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: [self-hosted, linux, podman, docker] | ||
runs-on: | ||
- self-hosted | ||
- linux | ||
- podman | ||
- docker | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/#-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build server runtime with compiled binaries | ||
run: > | ||
podman build -t ghcr.io/${{ github.repository }}/domain-server-builder:latest -f ./Dockerfile.build . | ||
podman push ghcr.io/${{ github.repository }}/domain-server-builder:latest | ||
podman build -t ghcr.io/${{ github.repository }}/domain-server:latest -f ./Dockerfile.runtime . | ||
- name: Build server runtime with compiled binaries | ||
run: | | ||
podman build -t ghcr.io/${{ github.repository }}/domain-server-builder:latest -f ./Dockerfile.build . | ||
podman push ghcr.io/${{ github.repository }}/domain-server-builder:latest | ||
podman build -t ghcr.io/${{ github.repository }}/domain-server:latest -f ./Dockerfile.runtime . | ||
podman push ghcr.io/${{ github.repository }}/domain-server:latest | ||
podman push ghcr.io/${{ github.repository }}/domain-server:latest |