-
Notifications
You must be signed in to change notification settings - Fork 926
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Create and push docker images to hub (#198)
* feat: Create and push docker images to hub Signed-off-by: Diwank Singh Tomer <[email protected]> * feat: Github action for building and pushing docker images to hub Signed-off-by: Diwank Singh Tomer <[email protected]> * fix(.github): Use matrix strategy for docker build & push Signed-off-by: Diwank Singh Tomer <[email protected]> * fix(.github): Do build/push manually instead of custom action Signed-off-by: Diwank Singh Tomer <[email protected]> * fix(.github): Set docker compose latest version Signed-off-by: Diwank Singh Tomer <[email protected]> * fix(.github): Touch .env Signed-off-by: Diwank Singh Tomer <[email protected]> * fix(.github): Simplify env_file Signed-off-by: Diwank Singh Tomer <[email protected]> * fix(.github): Fix agents-api docker-compose file Signed-off-by: Diwank Singh Tomer <[email protected]> * fix(.github): Fix docker-build github action stuff Signed-off-by: Diwank Singh Tomer <[email protected]> --------- Signed-off-by: Diwank Singh Tomer <[email protected]>
- Loading branch information
Showing
5 changed files
with
60 additions
and
39 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
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" | ||
|
||
jobs: | ||
Build-Push-Images-To-Docker-Hub: | ||
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 }}" | ||
|
||
- uses: KengoTODA/actions-setup-docker-compose@v1 | ||
with: | ||
version: "2.24.6" | ||
|
||
- name: Build images | ||
run: | | ||
touch .env | ||
docker compose build | ||
- name: Push images | ||
run: | | ||
docker compose push | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} |
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
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
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
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