Skip to content

Commit

Permalink
Try build arm images
Browse files Browse the repository at this point in the history
  • Loading branch information
aceberg committed Jun 29, 2024
1 parent 057ce6e commit 583cbe5
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/node-bootstrap-dev2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: node-bootstrap-main

on:
workflow_dispatch:
# push:
# branches: [ "main" ]
# paths:
# - 'node-bootstrap/**'

env:
IMAGE_NAME: node-bootstrap

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

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

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

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

- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ${{ env.IMAGE_NAME }}/Dockerfile-dev
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
push: true
tags: |
${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:dev

0 comments on commit 583cbe5

Please sign in to comment.