Skip to content

Commit

Permalink
do not push docker image on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
caic99 committed Feb 2, 2024
1 parent d9c3be6 commit 93ca709
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci_unidock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
unidock_test:
runs-on: nvidia
container:
container:
image: nvidia/cuda:12.2.0-devel-ubuntu22.04
options: --gpus all
steps:
Expand All @@ -19,7 +19,7 @@ jobs:
run: |
apt-get update
apt-get install -y build-essential cmake libboost-all-dev ninja-build
- if: ${{ env.ACT }}
name: Hack container for local development
run: |
Expand Down Expand Up @@ -59,14 +59,12 @@ jobs:
steps:

- name: log in to docker hub
uses: docker/login-action@v2
uses: docker/login-action@v3
if: github.event_name == 'push'
with:
username: dptechnology
password: ${{ secrets.DOCKERHUB_PAT }}

- name: set up QEMU
uses: docker/setup-qemu-action@v2

- name: set up docker buildx
id: buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -85,4 +83,4 @@ jobs:
tags: dptechnology/unidock:${{ steps.short-sha.outputs.sha }},dptechnology/unidock:latest
file: Dockerfile
context: "{{defaultContext}}:unidock"
push: true
push: ${{ github.event_name == 'push' }}

0 comments on commit 93ca709

Please sign in to comment.