Skip to content

Commit

Permalink
build: update prod build
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnacioHeredia authored Dec 2, 2024
1 parent 3b4a076 commit ffda788
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build-docker-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,18 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Get short commit SHA
id: vars
run: echo "GIT_COMMIT_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV

- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ secrets.HARBOR_URL }}/ai4os/ai4-papi:prod, ${{ secrets.DOCKERHUB_USERNAME }}/ai4-papi:prod
tags: |
${{ secrets.HARBOR_URL }}/ai4os/ai4-papi:prod
${{ secrets.HARBOR_URL }}/ai4os/ai4-papi:prod-${{ env.GIT_COMMIT_SHORT }}
${{ secrets.DOCKERHUB_USERNAME }}/ai4-papi:prod
file: docker/Dockerfile

0 comments on commit ffda788

Please sign in to comment.