Skip to content

Commit

Permalink
Build on pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
thohng committed Nov 15, 2023
1 parent 5794551 commit 5ce0ec2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches: ["dev-source-*", "source/*", "dev-source/*"]
tags: ["source-*.*.*"]
pull_request:
branches: [main]

jobs:
build:
Expand All @@ -12,22 +14,22 @@ jobs:
name: crushftp-source
runs-on: ubuntu-latest
env:
CRUSHFTP_VERSION: '10.5.4'
CRUSHFTP_VERSION: "10.5.4"
IS_TAG: ${{ startsWith(github.ref, 'refs/tags/') }}
SKIP_DOCKER: false
steps:
- uses: actions/checkout@v3

- name: Set up Docker Buildx
if: ${{ success() && github.event_name != 'pull_request' }}
if: ${{ success() }}
uses: docker/setup-buildx-action@v2

- name: Login to Docker Hub
if: ${{ success() && github.event_name != 'pull_request' }}
uses: docker/login-action@v2
with:
username: '${{ secrets.DOCKER_HUB_USERNAME }}'
password: '${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}'
username: "${{ secrets.DOCKER_HUB_USERNAME }}"
password: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}"

- name: Build and push
if: ${{ success() && env.SKIP_DOCKER != 'true' && github.event_name != 'pull_request' }}
Expand Down

0 comments on commit 5ce0ec2

Please sign in to comment.