-
Notifications
You must be signed in to change notification settings - Fork 12
84 lines (81 loc) · 2.9 KB
/
spacebar-server-docker.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Build spacebar Server docker image
on:
push:
branches: ["master", "rewrite"]
jobs:
build-amd64:
runs-on: ubuntu-latest
#needs: build-arm64
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- 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
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:spacebar-server/"
platforms: linux/amd64
file: Dockerfile-prod
push: true
tags: spacebarchat/server:latest-postgressql-amd64
provenance: false
- 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
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
push: true
amend: true
- 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
images: spacebarchat/server:latest-sqlite-amd64
push: true
amend: true
# build-arm64:
# runs-on: [ARM64]
# steps:
# - uses: actions/checkout@v3
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
# - 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
# uses: docker/build-push-action@v4
# with:
# context: "{{defaultContext}}:spacebar-server/"
# platforms: linux/arm64
# file: Dockerfile
# push: true
# tags: spacebarchat/server:latest-sqlite-arm64
# provenance: false
# - name: Build and push with postgressql arm64
# uses: docker/build-push-action@v4
# with:
# context: "{{defaultContext}}:spacebar-server/"
# platforms: linux/arm64
# file: Dockerfile-prod
# push: true
# tags: spacebarchat/server:latest-postgressql-arm64
# provenance: false