Skip to content

Commit

Permalink
Merge pull request #4 from terminalx-resonite/fix/deploy-yaml
Browse files Browse the repository at this point in the history
Fixed Yaml Syntax error
  • Loading branch information
daleglass authored Feb 29, 2024
2 parents c2db7fa + 0d15e15 commit fb5a365
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/deploy.yaml
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

0 comments on commit fb5a365

Please # to comment.