Skip to content

Commit

Permalink
arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
nbittich committed Feb 26, 2024
1 parent f425bbd commit 0000948
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/build-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,26 @@ name: ci
on:
push:
branches:
- 'main'
- 'feat/**'
- 'chore/**'
- "main"
- "feat/**"
- "chore/**"

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/[email protected]
-
name: Set up Docker Buildx
uses: docker/[email protected]
-
name: Login to DockerHub
uses: docker/[email protected]
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Build and push
uses: docker/[email protected]
- name: Build and push
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
push: true
tags: nbittich/websitev2:latest
9 changes: 5 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3.1.0
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@v2.1.0
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4.1.0
uses: docker/metadata-action@v5
with:
images: nbittich/websitev2

- name: Build and push Docker image
uses: docker/build-push-action@v3.2.0
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
Expand Down

0 comments on commit 0000948

Please sign in to comment.