creatorrr is building and pushing images to docker hub #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and push images to docker hub on merge to dev | |
run-name: ${{ github.actor }} is building and pushing images to docker hub | |
on: | |
push: | |
branches: | |
- "dev" | |
tags: | |
- "v*" | |
release: | |
types: [published, released, prereleased] | |
jobs: | |
Bake-Push-Images: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: julepai | |
password: "${{ secrets.DOCKER_HUB_PASSWORD }}" | |
- name: Build and push agent images | |
uses: docker/bake-action@v5 | |
with: | |
files: | | |
./docker-bake.hcl | |
targets: agents-api | |
push: true | |
set: | | |
*.cache-from=type=gha | |
*.cache-to=type=gha,mode=max | |
env: | |
TAG: ${{ github.ref_name }} | |
GIT_SHA: ${{ github.sha }} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true |