Skip to content

Commit

Permalink
updated ci
Browse files Browse the repository at this point in the history
  • Loading branch information
daimor committed Jan 9, 2024
1 parent 1cc1135 commit 5b9a875
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
dockerhub_auth: ${{ secrets.DOCKERHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
Expand Down Expand Up @@ -45,21 +47,21 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Login to Docker Hub
if: github.event_name != 'pull_request'
if: ${{ env.dockerhub_auth != '' }} && github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
if: github.event_name != 'pull_request'
if: ${{ env.dockerhub_auth != '' }} && github.event_name != 'pull_request'
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
if: github.event_name != 'pull_request'
if: ${{ env.dockerhub_auth != '' }} && github.event_name != 'pull_request'
uses: docker/setup-buildx-action@v2
with:
platforms: linux/amd64,linux/arm64
- name: Docker image
if: github.event_name != 'pull_request'
if: ${{ env.dockerhub_auth != '' }} && github.event_name != 'pull_request'
run: |
mkdir plugins
IMAGE=litesolutions/jenkins-objectscriptquality
Expand Down

0 comments on commit 5b9a875

Please sign in to comment.