Skip to content

Commit

Permalink
Parametrize repository name, image to push and branch
Browse files Browse the repository at this point in the history
  • Loading branch information
klaus993 committed Oct 10, 2024
1 parent ae37b91 commit daecbac
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches:
- docker-compose

env:
IMAGE_NAME: aligned_base
FULL_REPO_NAME: ${{ github.repository }}
GIT_BRANCH: ${{ github.ref_name }}

jobs:
docker-build-push:
name: Build docker
Expand All @@ -28,8 +33,8 @@ jobs:

- name: Build Docker image
run: |
make docker_build_aggregator
docker build -t ghcr.io/${FULL_REPO_NAME}/${IMAGE_NAME}:${GIT_BRANCH} -f docker/${IMAGE_NAME}.Dockerfile .
- name: Push Docker image
run: |
docker push ghcr.io/lambdaclass/aligned_layer/aggregator:v0.8.0
docker push ghcr.io/${FULL_REPO_NAME}/${IMAGE_NAME}:${GIT_BRANCH}

0 comments on commit daecbac

Please sign in to comment.