Skip to content

Commit

Permalink
test: use environment variables over set output
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Oct 3, 2024
1 parent 76720cf commit f6a5e13
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,24 +163,26 @@ jobs:
- name: Set repo owner to lowercase
id: repo_owner
run: echo "::set-output name=repo_owner::$(echo ${{ github.repository_owner }} | awk '{print tolower($0)}')"
run: |
REPO_OWNER=$(echo ${{ github.repository_owner }} | awk '{print tolower($0)}')
echo "repo_owner=$REPO_OWNER" >> $GITHUB_ENV
- name: Build and Push Docker Image to GitHub Container Registry 🐳
uses: docker/build-push-action@v6
env:
GAME: ${{ env.GAME }}
FLAG: ${{ env.FLAG }}
VERSION: beta
IMAGE: ghcr.io/${{ steps.repo_owner.outputs.repo_owner }}/hlds:${{ matrix.game }}-beta
IMAGE: ghcr.io/${{ env.repo_owner }}/hlds:${{ matrix.game }}-beta
with:
context: ./container
push: true
tags: ghcr.io/${{ steps.repo_owner.outputs.repo_owner }}/hlds:${{ matrix.game }}-beta
tags: ghcr.io/${{ env.repo_owner }}/hlds:${{ matrix.game }}-beta
build-args: |
GAME=${{ env.GAME }}
FLAG=${{ env.FLAG }}
VERSION=beta
IMAGE=ghcr.io/${{ steps.repo_owner.outputs.repo_owner }}/hlds:${{ matrix.game }}-beta
IMAGE=ghcr.io/${{ env.repo_owner }}/hlds:${{ matrix.game }}-beta
- name: Cleanup 🧹
if: always()
Expand Down

0 comments on commit f6a5e13

Please sign in to comment.