ci: Add dev tag publishing to Docker build test workflow

This commit is contained in:
Paul Gauthier (aider) 2025-01-11 07:12:56 -08:00
parent a02e11e0bc
commit f72f5f6438

View file

@ -33,7 +33,14 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker standard image
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
# First do test builds without pushing
- name: Test build Docker standard image
uses: docker/build-push-action@v5
with:
context: .
@ -42,7 +49,7 @@ jobs:
push: false
target: aider
- name: Build Docker full image
- name: Test build Docker full image
uses: docker/build-push-action@v5
with:
context: .
@ -50,3 +57,24 @@ jobs:
platforms: linux/amd64,linux/arm64
push: false
target: aider-full
# Then build and push dev tagged images
- name: Build and push Docker standard dev image
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/aider:dev
target: aider
- name: Build and push Docker full dev image
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/aider-full:dev
target: aider-full