From 8010d36598c0134a69d88abbcdbd6f3684a1d2f9 Mon Sep 17 00:00:00 2001 From: HussainTechSavvy Date: Fri, 15 Dec 2023 16:24:42 +0530 Subject: [PATCH] reverted runner and added docker buildx support --- .github/workflows/build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 49710bd..540c423 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,21 +8,28 @@ on: jobs: build-and-push: - runs-on: self-hosted + runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 + timeout-minutes: 5 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + timeout-minutes: 5 - name: Login to Docker Hub uses: docker/login-action@v3 with: username: ${{ vars.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + timeout-minutes: 5 - name: Create Tag id: tag run: echo "tag=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + timeout-minutes: 5 - name: Build and Push Docker Image uses: docker/build-push-action@v5 with: context: . push: false tags: improwised/php-base:8.2-s6-${{ steps.vars.outputs.sha_short }} + timeout-minutes: 5