Skip to content

Commit b8fa04e

Browse files
authored
Merge pull request #149 from PhlexPlexico/workflow-patch
Add arm arch to builds
2 parents c89db8a + 87cccae commit b8fa04e

File tree

3 files changed

+17
-42
lines changed

3 files changed

+17
-42
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@ If applicable, add screenshots to help explain your problem.
2828
- Browser [e.g. chrome, safari]
2929
- Version [e.g. 22]
3030

31-
**Server info
31+
**Server info**
3232
- OS: [e.g. Ubuntu, CentOS, Windows]
3333
- Version (16.04, 8.1.1911, 10]
3434
- NodeJS version (e.g. 13.13.0)
3535

36+
**Docker Information**
37+
If you are running through docker, please provide as much information as you can with your docker files. Please make sure to scrub your data and remove any keys such as the DB keys, Steam API key, or MySQL passwords.
38+
3639
**Additional context**
3740
Add any other context about the problem here.

.github/workflows/ghcr.yml

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,20 @@ on:
66
- master
77
jobs:
88
push:
9-
name: "Push amd64 build"
9+
name: "Create build and push to GHCR"
1010
runs-on: ubuntu-latest
1111
strategy:
1212
fail-fast: false
1313
steps:
1414
- name: Set up QEMU
1515
uses: docker/setup-qemu-action@v1
16-
- name: Set up Docker Buildx
17-
uses: docker/setup-buildx-action@v1
18-
- id: string
19-
uses: ASzc/change-string-case-action@v2
20-
with:
21-
string: ${{ github.repository_owner }}
22-
- uses: actions/checkout@v2
23-
- uses: docker/login-action@v1
2416
with:
25-
registry: ghcr.io
26-
username: ${{ github.repository_owner }}
27-
password: ${{ secrets.GITHUB_TOKEN }}
28-
- uses: docker/build-push-action@v2
29-
with:
30-
context: .
31-
file: Dockerfile
32-
#TODO: Fix GitHub Actions Building?
33-
#platforms: linux/arm/v7,linux/amd64
34-
platforms: linux/amd64
35-
push: true
36-
tags: |
37-
ghcr.io/${{ steps.string.outputs.lowercase }}/g5api:latest
38-
push-arm:
39-
name: "Push armv7 build"
40-
runs-on: ubuntu-latest
41-
strategy:
42-
fail-fast: false
43-
steps:
44-
- name: Set up QEMU
45-
uses: docker/setup-qemu-action@v1
17+
image: tonistiigi/binfmt:latest
18+
platforms: all
4619
- name: Set up Docker Buildx
4720
uses: docker/setup-buildx-action@v1
21+
with:
22+
buildkitd-flags: --debug
4823
- id: string
4924
uses: ASzc/change-string-case-action@v2
5025
with:
@@ -61,7 +36,7 @@ jobs:
6136
file: Dockerfile
6237
#TODO: Fix GitHub Actions Building?
6338
#platforms: linux/arm/v7,linux/amd64
64-
platforms: linux/arm/v7
39+
platforms: linux/amd64,linux/arm/v7
6540
push: true
6641
tags: |
6742
ghcr.io/${{ steps.string.outputs.lowercase }}/g5api:latest

Dockerfile

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,24 @@ EXPOSE 3301
66

77
# update and install initial packages
88
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
9+
ca-certificates \
910
curl \
1011
apt-transport-https \
1112
lsb-release \
1213
gnupg \
1314
git
1415

16+
# SSL Errors Exist in 6-buster. Let's ignore them for now...
17+
RUN echo "-k" > ~/.curlrc
1518
# add yarn repo
1619
RUN curl https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
1720
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
1821

1922
# install nvm and node 13.8.0
20-
# SHELL ["/bin/bash", "--login", "-c"]
21-
# RUN curl -o- -k https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
22-
# RUN nvm install 16.5.0
23-
ENV NODE_VERSION=16.5.0
24-
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
25-
ENV NVM_DIR=/root/.nvm
26-
RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
27-
RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION}
28-
RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION}
29-
ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
23+
SHELL ["/bin/bash", "--login", "-c"]
24+
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
25+
RUN nvm install 16.5.0
26+
3027

3128
# install yarn
3229
RUN apt-get update && apt-get install --no-install-recommends -y \

0 commit comments

Comments
 (0)