Skip to content

Commit

Permalink
Use buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
bbedward committed Jun 27, 2024
1 parent 5512d5c commit 24b5404
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
GITHUB_RUN_ID: ${{ github.run_id }}
steps:
- uses: actions/checkout@master

- name: Login to registry
uses: actions-hub/docker/login@master
env:
Expand All @@ -83,15 +84,15 @@ jobs:
shell: bash
run: echo "BRANCH_NAME=$(echo ${GITHUB_HEAD_REF} | tr / -)" >> $GITHUB_ENV

- name: Build and tag
- name: Build and push
if: success()
run: docker build -t appditto/natricon-server:${{ env.BRANCH_NAME }}-${{ env.GITHUB_RUN_ID }} server

- name: Push image
if: success()
uses: actions-hub/docker@master
uses: docker/build-push-action@v3
with:
args: push appditto/natricon-server:${{ env.BRANCH_NAME }}-${{ env.GITHUB_RUN_ID }}
context: server
platforms: linux/amd64
push: true
file: ./Dockerfile
tags: appditto/natricon-server:${{ env.BRANCH_NAME }}-${{ env.GITHUB_RUN_ID }}

deploy_nuxt:
name: Deploy nuxt app
Expand Down
2 changes: 2 additions & 0 deletions server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM appditto/libvips:latest as builder

ARG TARGETARCH

WORKDIR /root

# Update GO
Expand Down

0 comments on commit 24b5404

Please sign in to comment.