Skip to content

Commit

Permalink
Update build.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: aniketgohelimp <[email protected]>
  • Loading branch information
aniketgohelimp authored Jun 4, 2024
1 parent 049efa7 commit 7f716d8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Push Docker Image
on:
push:
branches:
- "7.4-s6"
- "master"

jobs:
build-and-push:
Expand All @@ -15,12 +15,12 @@ jobs:
- 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: 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=${{ github.ref_name }}-$(git rev-parse --short HEAD)-$(date +%s)" >> $GITHUB_OUTPUT
Expand All @@ -29,8 +29,8 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
push: false
tags: improwised/proxysql-base:${{ steps.tag.outputs.tag }}
push: true
tags: improwised/proxysql:${{ steps.tag.outputs.tag }}
cache-from: type=gha
cache-to: type=gha,mode=max
timeout-minutes: 5
timeout-minutes: 5

0 comments on commit 7f716d8

Please sign in to comment.