Skip to content

Commit

Permalink
Moved env
Browse files Browse the repository at this point in the history
  • Loading branch information
nkononov committed Mar 21, 2024
1 parent 9f3ba10 commit 771d70f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci-file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ on:
- master
- 'release-\d.\d\d'

env:
MY_VAR: ${{ github.event_name == 'push' && 'myvar' || github.ref_name }}

jobs:
build:
name: Build and push docker image
Expand All @@ -36,5 +33,7 @@ jobs:
cat main/main.go
echo "Image pushed to ${{ steps.extract_branch.outputs.image_version }}"
echo "Variable is ${{ env.MY_VAR }}"
env:
MY_VAR: ${{ github.event_name == 'push' && 'myvar' || github.ref_name }}

# uses: docker/setup-qemu-action@v3

0 comments on commit 771d70f

Please sign in to comment.