Skip to content

Commit

Permalink
Try to fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
robertomest committed Aug 1, 2024
1 parent 28ab547 commit f2d310e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/base-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ permissions:
id-token: write
contents: write


jobs:

build-and-push:
Expand All @@ -31,12 +32,7 @@ jobs:
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: 'Build and push image'
run: |
az acr login -n ${{ secrets.ACR_NAME }}
VERSION_TAG=${{ github.run_id }}
export IMAGE_TAG=${{ secrets.ACR_NAME }}.azurecr.io/unlisted/farmai/terravibes/${{ matrix.image-name }}:$VERSION_TAG
docker build . -f ./resources/docker/${{ matrix.dockerfile }} -t $IMAGE_TAG
docker push $IMAGE_TAG
echo noop
update-tags:
needs: build-and-push
runs-on: ubuntu-latest
Expand All @@ -52,7 +48,7 @@ jobs:
sed -i "s|\(FROM.*:\).*|\1${TAG}|" ./resources/docker/Dockerfile-devcontainer
- name: Commit changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.WORKFLOW_PAT }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "FarmVibes.AI Release Pipeline"
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
permissions:
id-token: write
contents: write
pull-requests: write

jobs:
release:
Expand Down

0 comments on commit f2d310e

Please sign in to comment.