Skip to content

Commit

Permalink
Add ARM docker image.
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-buss committed Aug 15, 2021
1 parent 73ccef3 commit 57b0969
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/docker_hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: Docker Login
uses: docker/login-action@v1.6.0
uses: azure/docker-login@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- name: Build and push
id: docker_build
Expand All @@ -37,7 +39,8 @@ jobs:
context: ./
file: ./Dockerfile
push: true
tags: evanbuss/openbooks:latest
platforms: linux/amd64,linux/arm64
tags: evanbuss/openbooks:latest,evanbuss/openbooks:${GITHUB_SHA::8}

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:lts as web
FROM node:16 as web
WORKDIR /web
COPY . .
WORKDIR /web/server/app/
RUN npm install
RUN npm run build

FROM golang:rc-alpine3.13 as build
FROM golang as build
WORKDIR /go/src/
COPY . .
COPY --from=web /web/ .
Expand Down

0 comments on commit 57b0969

Please sign in to comment.