From 1bae860d0208df33de1d7003acf58b12cabfaf9d Mon Sep 17 00:00:00 2001 From: OfficialR3ido101 Date: Thu, 29 Feb 2024 19:23:28 +0000 Subject: [PATCH 1/2] yaml fix --- .github/workflows/deploy.yaml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 288083b..be47966 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,28 +1,33 @@ +--- 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/login-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 \ No newline at end of file + podman push ghcr.io/${{ github.repository }}/domain-server:latest From 0d15e15dbb7455beccd6632947339ae3edc22c4b Mon Sep 17 00:00:00 2001 From: OfficialR3ido101 Date: Thu, 29 Feb 2024 19:24:59 +0000 Subject: [PATCH 2/2] removed uneeded line --- .github/workflows/deploy.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index be47966..1f51aab 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -23,8 +23,7 @@ jobs: 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 build -t ghcr.io/${{ github.repository }}/domain-server-builder:latest -f ./Dockerfile.build . podman push ghcr.io/${{ github.repository }}/domain-server-builder:latest