Skip to content

Commit

Permalink
Don’t use env
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Brody committed Aug 15, 2024
1 parent 795604f commit 9ff7011
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: check
on: [push]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}/e2e
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
# can't use `env` since it doesn't work in e2e.steps[0].uses
jobs:
lint:
runs-on: ubuntu-22.04
Expand All @@ -27,15 +24,15 @@ jobs:
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: ghcr.io/${{ github.repository }}/e2e

- name: Build and push Docker image
uses: docker/build-push-action@v6
Expand All @@ -51,4 +48,4 @@ jobs:
runs-on: ubuntu-22.04
needs: build-and-push-image
steps:
- uses: docker://${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.BRANCH_NAME }}
- uses: docker://ghcr.io/${{ github.repository }}/e2e:${{ github.head_ref || github.ref_name }}

0 comments on commit 9ff7011

Please sign in to comment.