From 163cd5cdbf7b7fd253388bbbf5bf3e078e9b3f48 Mon Sep 17 00:00:00 2001 From: ShaYmez Date: Mon, 26 Feb 2024 20:19:58 +0000 Subject: [PATCH] Build the image --- .github/workflows/image.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 99c261c..69f9d4f 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -1 +1,24 @@ -Start \ No newline at end of file +name: Build-HBMonv2 + +on: + push: + branches: master + +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 \ + --platform linux/i386,linux/amd64,linux/arm64 . \ No newline at end of file