Skip to content

Commit

Permalink
Merge pull request #240 from Fryguy/fix_travis_env
Browse files Browse the repository at this point in the history
Fix TRAVIS env vars

(cherry picked from commit 44fbe20)
  • Loading branch information
bdunne authored and Fryguy committed Jan 25, 2022
1 parent 72d9160 commit ae49f8e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set TRAVIS ENV variables
run: |
echo "TRAVIS_PULL_REQUEST=${{ github.event.number || false }}" >> $GITHUB_ENV
TRAVIS_BRANCH="${{ github.head_ref }}" && \
echo "TRAVIS_BRANCH=${TRAVIS_BRANCH:-$(echo $GITHUB_REF | cut -d '/' -f 3-)}" >> $GITHUB_ENV
- name: Set up registry credentials
if: ${{ github.event_name != 'pull_request' }}
run: |
echo "REGISTRY_USERNAME=${{ secrets.REGISTRY_USERNAME }}" >> $GITHUB_ENV
echo "REGISTRY_PASSWORD=${{ secrets.REGISTRY_PASSWORD }}" >> $GITHUB_ENV
- name: Run container build script
run: bin/build_container_image
env:
TRAVIS_PULL_REQUEST: ${{ github.event_name == 'pull_request' && 'true' || 'false' }}
TRAVIS_BRANCH: ${{ env.GITHUB_REF_NAME }}

0 comments on commit ae49f8e

Please sign in to comment.