mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
ci: Conditionally push Docker images only on non-pull request events
This commit is contained in:
parent
a08326ab60
commit
1986f08cf9
1 changed files with 3 additions and 2 deletions
5
.github/workflows/docker-build-test.yml
vendored
5
.github/workflows/docker-build-test.yml
vendored
|
@ -31,6 +31,7 @@ jobs:
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
@ -42,7 +43,7 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
file: ./docker/Dockerfile
|
file: ./docker/Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/aider:dev
|
tags: ${{ secrets.DOCKERHUB_USERNAME }}/aider:dev
|
||||||
target: aider
|
target: aider
|
||||||
|
|
||||||
|
@ -52,6 +53,6 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
file: ./docker/Dockerfile
|
file: ./docker/Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/aider-full:dev
|
tags: ${{ secrets.DOCKERHUB_USERNAME }}/aider-full:dev
|
||||||
target: aider-full
|
target: aider-full
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue