Skip to content

Commit

Permalink
Merge pull request #466 from surajssd/update-the-container-image-token
Browse files Browse the repository at this point in the history
action-build-push: Update the token secret value
  • Loading branch information
surajssd authored Aug 15, 2024
2 parents b5902d8 + 352d2a9 commit f1dae2c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/cloudshell-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,26 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.GHCR_BUILD_PUSH_TOKEN }}

- name: Generate Tag
id: tag
run: |
echo "image_tag=${{ github.sha }}-$(date '+%Y-%m-%d-%H-%M-%S')" >> $GITHUB_OUTPUT
- name: Base image
uses: docker/build-push-action@v6
with:
context: .
file: linux/base.Dockerfile
push: true
tags: ghcr.io/azure/cloudshell/base:${{ github.sha }},ghcr.io/azure/cloudshell/base:latest
tags: ghcr.io/azure/cloudshell/base:${{ steps.tag.outputs.image_tag }},ghcr.io/azure/cloudshell/base:latest

- name: Tools image
uses: docker/build-push-action@v6
with:
context: .
file: linux/tools.Dockerfile
push: true
tags: ghcr.io/azure/cloudshell/tools:${{ github.sha }},ghcr.io/azure/cloudshell/tools:latest
build-args: IMAGE_LOCATION=ghcr.io/azure/cloudshell/base:${{ github.sha }}
tags: ghcr.io/azure/cloudshell/tools:${{ steps.tag.outputs.image_tag }},ghcr.io/azure/cloudshell/tools:latest
build-args: IMAGE_LOCATION=ghcr.io/azure/cloudshell/base:${{ steps.tag.outputs.image_tag }}

0 comments on commit f1dae2c

Please sign in to comment.