Skip to content

Commit

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

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

- name: Build and push Docker image
uses: docker/build-push-action@v6
Expand All @@ -47,5 +50,6 @@ jobs:
e2e:
runs-on: ubuntu-22.04
needs: build-and-push-image
container: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.BRANCH_NAME }}
steps:
- uses: docker://ghcr.io/${{ github.repository }}/e2e:${{ github.head_ref || github.ref_name }}
- run: /urbanstats/test-ci.sh
2 changes: 1 addition & 1 deletion react/test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ RUN apt-get -y install libx11-6:i386
RUN apt-get -y install fluxbox

COPY ./ ./
CMD /urbanstats/test-ci.sh
ENTRYPOINT [ "/bin/bash" ]

0 comments on commit 44fc384

Please sign in to comment.