From eda523da579f8fa91eebe1efded77c12475fa945 Mon Sep 17 00:00:00 2001 From: cviolbarbosa <violbarbosa@ivi.fraunhofer.de> Date: Mon, 18 Mar 2024 12:53:14 +0100 Subject: [PATCH] testing github building action@v3 --- .github/workflows/build-push.yml | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build-push.yml diff --git a/.github/workflows/build-push.yml b/.github/workflows/build-push.yml new file mode 100644 index 00000000..c1cf0046 --- /dev/null +++ b/.github/workflows/build-push.yml @@ -0,0 +1,38 @@ + +name: Build and Push to Docker Hub +on: + push: + branches: + - test + tags: + - '*.*.*' + +jobs: + build-and-push: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_HUB_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + dockerfile: ./packaging/Dockerfile + push: true + tags: | + helyosframework/helyos_core:${{ github.ref }} + helyosframework/helyos_core:${{ github.ref }}-linux-amd64 + helyosframework/helyos_core:${{ github.ref }}-linux-arm-v7 + helyosframework/helyos_core:${{ github.ref }}-macos-mx + platforms: linux/amd64,linux/arm/v7,linux/amd64