HBMonv2/.github/workflows/image.yml

25 lines
670 B
YAML
Raw Normal View History

2024-02-26 15:33:08 -05:00
name: Build-HBMonv2
on:
push:
2024-02-26 15:43:35 -05:00
branches: main
2024-02-26 15:33:08 -05:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: install buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest
- name: login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: build the image
run: |
docker buildx build --push \
--tag shaymez/hbmonv2:latest \
2024-02-26 15:43:35 -05:00
--platform linux/i386,linux/amd64,linux/arm64 .