Skip to content

Commit

Permalink
Remove env
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebrody committed Oct 23, 2024
1 parent 119f0a7 commit 8153f82
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: main
on: [push]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}/e2e
jobs:
check-dockerfile-changes:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -31,15 +28,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 @@ -63,4 +60,4 @@ jobs:
if: needs.check-dockerfile-changes.changed == 'false'
uses: ./.github/workflows/check.yml
with:
test-image: ghcr.io/${{ env.IMAGE_NAME }}:${{ github.event.repository.default_branch }}
test-image: ghcr.io/${{ github.repository }}/e2e:${{ github.event.repository.default_branch }}

0 comments on commit 8153f82

Please sign in to comment.