Skip to content

Commit

Permalink
reverted runner and added docker buildx support
Browse files Browse the repository at this point in the history
  • Loading branch information
HussainTechSavvy committed Dec 15, 2023
1 parent 8f11792 commit 8010d36
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8010d36

Please sign in to comment.