Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #69 from vshn/fix_env_vars
Browse files Browse the repository at this point in the history
Replace legacy env var assignment
Kidswiss authored Mar 4, 2021
2 parents 60a3767 + 7ccdb7f commit ef03d2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -16,10 +16,10 @@ jobs:
- uses: actions/checkout@v1
- name: Set version latest
if: github.ref == 'refs/heads/master'
run: echo VERSION::latest >> $GITHUB_ENV
run: echo VERSION=latest >> $GITHUB_ENV
- name: Set version from tag
if: startsWith(github.ref, 'refs/tags/v')
run: echo VERSION::$(echo ${GITHUB_REF#refs/tags/}) >> $GITHUB_ENV
run: echo VERSION=$(echo ${GITHUB_REF#refs/tags/}) >> $GITHUB_ENV
- name: Build Image
run: docker build -t "${IMAGE}:${VERSION}" .
- name: Push Image

0 comments on commit ef03d2a

Please sign in to comment.