Skip to content

Commit

Permalink
ci: adjust dojo version to be used for dojoup
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Sep 30, 2024
1 parent aa83627 commit 71cba6d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,21 @@ jobs:
if: github.event_name == 'release'
run: |
echo "DOCKER_TAG=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
echo "DOJO_VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
echo "tag_name=$DOCKER_TAG" >> $GITHUB_OUTPUT
- name: Set Docker tag for push event
if: github.event_name == 'push'
run: |
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c 1-7)
echo "DOCKER_TAG=$SHORT_SHA" >> $GITHUB_ENV
echo "DOJO_VERSION=$SHORT_SHA" >> $GITHUB_OUTPUT
- name: Set Docker tag for workflow_dispatch event
if: github.event_name == 'workflow_dispatch'
run: |
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c 1-7)
echo "tag_name=$SHORT_SHA" >> $GITHUB_OUTPUT
echo "DOJO_VERSION=$SHORT_SHA" >> $GITHUB_OUTPUT
echo "DOCKER_TAG=${{ inputs.docker_tag }}" >> $GITHUB_ENV
- name: Set outputs
Expand All @@ -72,7 +74,7 @@ jobs:
build-args: |
VARIANT=bookworm
BUILD_TYPE=${{ github.event_name }}
DOJO_VERSION=${{ github.event.release.tag_name }}
DOJO_VERSION=${{ env.DOJO_VERSION }}
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}-dev:latest

Expand Down

0 comments on commit 71cba6d

Please sign in to comment.