Skip to content

small change to test workflow #4

small change to test workflow

small change to test workflow #4

Workflow file for this run

name: Build and publish docker image
on:
pull_request:
branches: [ "main" ]
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to GHCR
uses: docker/login-action@v3
with:
with:
registry: ${{ secrets.REGISTRY }}

Check failure on line 22 in .github/workflows/docker-image.yml

View workflow run for this annotation

GitHub Actions / Build and publish docker image

Invalid workflow file

The workflow is not valid. .github/workflows/docker-image.yml (Line: 22, Col: 13): A mapping was not expected

Check failure on line 22 in .github/workflows/docker-image.yml

View workflow run for this annotation

GitHub Actions / Build and publish docker image

Invalid workflow file

The workflow is not valid. .github/workflows/docker-image.yml (Line: 22, Col: 13): A mapping was not expected
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker Image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/intelligent-testing-lab/autoware-scenario-runner:${{ github.run_number }}
cache-from: type=registry,ref=ghcr.io/intelligent-testing-lab/autoware-scenario-runner:buildcache
cache-to: type=registry,ref=ghcr.io/intelligent-testing-lab/autoware-scenario-runner:buildcache,mode=max