Skip to content

Remove env

Remove env #4

Workflow file for this run

name: main
on: [push]
jobs:
check-dockerfile-changes:
runs-on: ubuntu-22.04
outputs:
changed: ${{ steps.get-changed-files.outputs.any_changed }}
steps:
- id: get-changed-files
uses: tj-actions/changed-files@v45
with:
files: |
react/test/Dockerfile
build-and-push-image:
runs-on: ubuntu-22.04
needs: check-dockerfile-changes
if: needs.check-dockerfile-changes.changed == 'true'
outputs:
image_tag: ${{ steps.meta.outputs.tags }}
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
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: ghcr.io/${{ github.repository }}/e2e
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: react/test/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ steps.meta.outputs.tags }}
cache-to: type=inline
run-checks-built-image:
needs: build-and-push-image
uses: ./.github/workflows/check.yml

Check failure on line 54 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / main

Invalid workflow file

The workflow is not valid. In .github/workflows/main.yml (Line: 54, Col: 11): Error from called workflow kavigupta/urbanstats/.github/workflows/check.yml@8153f82314bbc6662cf1c8193b609fdbdaf0a48f (Line: 25, Col: 12): Job 'build-frontend' depends on unknown job 'build-and-push-image'. In .github/workflows/main.yml (Line: 54, Col: 11): Error from called workflow kavigupta/urbanstats/.github/workflows/check.yml@8153f82314bbc6662cf1c8193b609fdbdaf0a48f (Line: 48, Col: 13): Job 'run-e2e-tests' depends on unknown job 'build-and-push-image'.
with:
test-image: ghcr.io/${{ needs.build-and-push-image.outputs.image_tag }}
run-checks-main-image:
needs: check-dockerfile-changes
if: needs.check-dockerfile-changes.changed == 'false'
uses: ./.github/workflows/check.yml
with:
test-image: ghcr.io/${{ github.repository }}/e2e:${{ github.event.repository.default_branch }}