Skip to content

first version of dockerfile and workflow #1

first version of dockerfile and workflow

first version of dockerfile and workflow #1

Workflow file for this run

name: Build Docker Images
on:
workflow_dispatch:
inputs:
onmt_version:
description: "OpenNMT version"
required: true
type: string
# to facilitate initial tests in PR
push:
branches:
- "docker"
run-name: ${{ format('{0}:{1}', github.workflow, inputs.onmt_version) }}
env:
ONMT_VERSION: ${{ inputs.onmt_version || 'test' }}
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
cuda_version: [11.8.0, 12.1.0]
permissions:
id-token: write
contents: read
steps:
- name: Checkout opennmt repo
uses: actions/checkout@v4
- name: Build
run: |
docker/build.sh ${{ env.ONMT_VERSION }} ${{ matrix.cuda_version}}
- name: Login to ghcr
uses: docker/login-action@v2

Check failure on line 36 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 36
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}