From 60ba05dd05b2d4f8e2376d5cc7322d0f4d7cdecc Mon Sep 17 00:00:00 2001 From: Giovanni Allegri Date: Fri, 6 Oct 2023 17:34:07 +0200 Subject: [PATCH] Update test_inputs.yml --- .github/workflows/test_inputs.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_inputs.yml b/.github/workflows/test_inputs.yml index c2345d1..130dfbd 100644 --- a/.github/workflows/test_inputs.yml +++ b/.github/workflows/test_inputs.yml @@ -29,5 +29,22 @@ jobs: runs-on: ubuntu-latest steps: - - name: Send greeting - run: echo "Building ${{ github.event.inputs.image }} from branch ${{ github.event.inputs.branch }} (push ${{ fromJSON(github.event.inputs.push) }})" + - uses: actions/checkout@v2 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v5 + with: + file: ./docker/${{ github.event.inputs.image }}/Dockerfile + context: "./docker/${{ github.event.inputs.image }}/" + push: ${{fromJSON(github.event.inputs.push)}} + tags: giohappy/${{ github.event.inputs.image }}:${{ github.event.inputs.tag }} + - name: Final message + run: echo "Built ${{ github.event.inputs.image }} from branch ${{ github.event.inputs.branch }} (push ${{ fromJSON(github.event.inputs.push) }})"