Skip to content

Commit

Permalink
Merge pull request #4596 from telefonicaid/hardening/build-gitactions
Browse files Browse the repository at this point in the history
FIX image build gitactions
  • Loading branch information
mapedraza authored Jul 19, 2024
2 parents 901628d + 7e0af06 commit c7e65a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publishimage-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Publish Docker image (master)
on:
push:
branches:
- master
- master

jobs:
build-and-push:
Expand All @@ -26,7 +26,9 @@ jobs:
password: ${{ secrets.DOCKERHUB_TEF_TOKEN }}

- name: Build Docker image
run: docker build -t telefonicaiot/fiware-orion:latest --build-arg GIT_REV_ORION=master --secret id=repo_token,env=${{ secrets.REPO_ACCESS_TOKEN }} --no-cache -f docker/Dockerfile .
run: |
export TOKEN=${{ secrets.REPO_ACCESS_TOKEN }}
docker build -t telefonicaiot/fiware-orion:latest --build-arg GIT_REV_ORION=master --secret id=repo_token,env=TOKEN --no-cache -f docker/Dockerfile .
- name: Push Docker image
run: docker push telefonicaiot/fiware-orion:latest
4 changes: 3 additions & 1 deletion .github/workflows/publishimage-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Build Docker image
run: docker build -t telefonicaiot/fiware-orion:${{ env.VERSION }} --build-arg GIT_REV_ORION=${{ env.VERSION }} --secret id=repo_token,env=${{ secrets.REPO_ACCESS_TOKEN }} --no-cache -f docker/Dockerfile .
run: |
export TOKEN=${{ secrets.REPO_ACCESS_TOKEN }}
docker build -t telefonicaiot/fiware-orion:${{ env.VERSION }} --build-arg GIT_REV_ORION=${{ env.VERSION }} --secret id=repo_token,env=TOKEN --no-cache -f docker/Dockerfile .
- name: Push Docker image
run: docker push telefonicaiot/fiware-orion:${{ env.VERSION }}

0 comments on commit c7e65a4

Please sign in to comment.