Skip to content

train-model: Array Sorting @ EC2 Spot #5

train-model: Array Sorting @ EC2 Spot

train-model: Array Sorting @ EC2 Spot #5

Workflow file for this run

name: Test Workflow with GitHub Container Registry
on:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set lowercase repo name
id: set_env
run: echo "REPO_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: ./.devcontainer
push: true
tags: ghcr.io/${{ github.repository_owner }}/${{ env.REPO_NAME }}/devcontainer:latest
test:
needs: build
runs-on: ubuntu-latest
container: ghcr.io/${{ github.repository_owner }}/${{ env.REPO_NAME }}/devcontainer:latest

Check failure on line 36 in .github/workflows/python-app.yml

View workflow run for this annotation

GitHub Actions / Test Workflow with GitHub Container Registry

Invalid workflow file

The workflow is not valid. .github/workflows/python-app.yml (Line: 36, Col: 16): Unrecognized named-value: 'env'. Located at position 1 within expression: env.REPO_NAME
steps:
- name: Test
run: |
echo "success"