Skip to content

Commit

Permalink
Format github actions files
Browse files Browse the repository at this point in the history
  • Loading branch information
TheArcaneBrony committed Aug 23, 2023
1 parent 91829f9 commit 3bc7692
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 115 deletions.
39 changes: 13 additions & 26 deletions .github/workflows/spacebar-client-docker-pull-requessts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,24 @@ name: Dry-run build for PRs - client

on:
pull_request:
branches: [ "master" ]
branches: ["master"]

jobs:

build-amd64:
runs-on: [x64]
needs: build-arm64
steps:
-
uses: actions/checkout@v3
-
name: Set up QEMU
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_SPACEBAR_USERNAME }}
password: ${{ secrets.DOCKERHUB_SPACEBAR_TOKEN }}
-
name: Build and push
- name: Build and push
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:spacebar-client/"
Expand All @@ -34,8 +28,7 @@ jobs:
push: false
tags: spacebarchat/client:latest-amd64
provenance: false
-
name: Create and push manifest images
- name: Create and push manifest images
uses: Noelware/docker-manifest-action@master # or use a pinned version in the Releases tab
with:
inputs: spacebarchat/client:latest
Expand All @@ -46,22 +39,17 @@ jobs:
build-arm64:
runs-on: [ARM64]
steps:
-
uses: actions/checkout@v3
-
name: Set up QEMU
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_SPACEBAR_USERNAME }}
password: ${{ secrets.DOCKERHUB_SPACEBAR_TOKEN }}
-
name: Build and push armv7
- name: Build and push armv7
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:spacebar-client/"
Expand All @@ -70,8 +58,7 @@ jobs:
push: false
tags: spacebarchat/client:latest-armv7
provenance: false
-
name: Build and push arm64
- name: Build and push arm64
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:client/"
Expand Down
39 changes: 13 additions & 26 deletions .github/workflows/spacebar-client-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,24 @@ name: Build spacebar client docker image

on:
push:
branches: [ "master", "rewrite" ]
branches: ["master", "rewrite"]

jobs:

build-amd64:
runs-on: [x64]
needs: build-arm64
steps:
-
uses: actions/checkout@v3
-
name: Set up QEMU
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_SPACEBAR_USERNAME }}
password: ${{ secrets.DOCKERHUB_SPACEBAR_TOKEN }}
-
name: Build and push
- name: Build and push
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:spacebar-client/"
Expand All @@ -34,8 +28,7 @@ jobs:
push: true
tags: spacebarchat/client:latest-amd64
provenance: false
-
name: Create and push manifest images
- name: Create and push manifest images
uses: Noelware/docker-manifest-action@master # or use a pinned version in the Releases tab
with:
inputs: spacebarchat/client:latest
Expand All @@ -46,22 +39,17 @@ jobs:
build-arm64:
runs-on: [ARM64]
steps:
-
uses: actions/checkout@v3
-
name: Set up QEMU
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_SPACEBAR_USERNAME }}
password: ${{ secrets.DOCKERHUB_SPACEBAR_TOKEN }}
-
name: Build and push armv7
- name: Build and push armv7
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:spacebar-client/"
Expand All @@ -70,8 +58,7 @@ jobs:
push: true
tags: spacebarchat/client:latest-armv7
provenance: false
-
name: Build and push arm64
- name: Build and push arm64
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:spacebar-client/"
Expand Down
47 changes: 15 additions & 32 deletions .github/workflows/spacebar-server-docker-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,24 @@ name: Check pull request Server

on:
pull_request:
branches: [ "master" ]

branches: ["master"]

jobs:

build-amd64:
runs-on: [x64]
needs: build-arm64
steps:
-
uses: actions/checkout@v3
-
name: Set up QEMU
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_SPACEBAR_USERNAME }}
password: ${{ secrets.DOCKERHUB_SPACEBAR_TOKEN }}
-
name: Build and push with postgressql
- name: Build and push with postgressql
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:server/"
Expand All @@ -35,26 +28,22 @@ jobs:
push: false
tags: spacebarchat/server:latest-postgressql-amd64
provenance: false
-
name: Build and push with sqlite
- name: Build and push with sqlite
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:spacebar-server/"
file: Dockerfile
push: false
tags: spacebarchat/server:latest-sqlite-amd64
provenance: false

-
name: Create and push manifest images postgressql
- name: Create and push manifest images postgressql
uses: Noelware/docker-manifest-action@master # or use a pinned version in the Releases tab
with:
inputs: spacebarchat/server:latest-postgressql
images: spacebarchat/server:latest-postgressql-amd64,spacebarchat/server:latest-postgressql-arm64
push: false
amend: true
-
name: Create and push manifest images sqlite
- name: Create and push manifest images sqlite
uses: Noelware/docker-manifest-action@master # or use a pinned version in the Releases tab
with:
inputs: spacebarchat/server:latest-sqlite
Expand All @@ -65,22 +54,17 @@ jobs:
build-arm64:
runs-on: [ARM64]
steps:
-
uses: actions/checkout@v3
-
name: Set up QEMU
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_SPACEBAR_USERNAME }}
password: ${{ secrets.DOCKERHUB_SPACEBAR_TOKEN }}
-
name: Build and push with sqlite arm64
- name: Build and push with sqlite arm64
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:spacebar-server/"
Expand All @@ -89,8 +73,7 @@ jobs:
push: false
tags: spacebarchat/server:latest-sqlite-arm64
provenance: false
-
name: Build and push with postgressql arm64
- name: Build and push with postgressql arm64
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:spacebar-server/"
Expand Down
46 changes: 15 additions & 31 deletions .github/workflows/spacebar-server-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,24 @@ name: Build spacebar Server docker image

on:
push:
branches: [ "master", "rewrite" ]
branches: ["master", "rewrite"]

jobs:

build-amd64:
runs-on: [x64]
needs: build-arm64
steps:
-
uses: actions/checkout@v3
-
name: Set up QEMU
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_SPACEBAR_USERNAME }}
password: ${{ secrets.DOCKERHUB_SPACEBAR_TOKEN }}
-
name: Build and push with postgressql
- name: Build and push with postgressql
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:spacebar-server/"
Expand All @@ -34,26 +28,22 @@ jobs:
push: true
tags: spacebarchat/server:latest-postgressql-amd64
provenance: false
-
name: Build and push with sqlite
- name: Build and push with sqlite
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:spacebar-server/"
file: Dockerfile
push: true
tags: spacebarchat/server:latest-sqlite-amd64
provenance: false

-
name: Create and push manifest images postgressql
- name: Create and push manifest images postgressql
uses: Noelware/docker-manifest-action@master # or use a pinned version in the Releases tab
with:
inputs: spacebarchat/server:latest-postgressql
images: spacebarchat/server:latest-postgressql-amd64,spacebarchat/server:latest-postgressql-arm64
push: true
amend: true
-
name: Create and push manifest images sqlite
- name: Create and push manifest images sqlite
uses: Noelware/docker-manifest-action@master # or use a pinned version in the Releases tab
with:
inputs: spacebarchat/server:latest-sqlite
Expand All @@ -64,22 +54,17 @@ jobs:
build-arm64:
runs-on: [ARM64]
steps:
-
uses: actions/checkout@v3
-
name: Set up QEMU
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_SPACEBAR_USERNAME }}
password: ${{ secrets.DOCKERHUB_SPACEBAR_TOKEN }}
-
name: Build and push with sqlite arm64
- name: Build and push with sqlite arm64
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:spacebar-server/"
Expand All @@ -88,8 +73,7 @@ jobs:
push: true
tags: spacebarchat/server:latest-sqlite-arm64
provenance: false
-
name: Build and push with postgressql arm64
- name: Build and push with postgressql arm64
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:spacebar-server/"
Expand Down

0 comments on commit 3bc7692

Please sign in to comment.