Skip to content

Create and publish ASF MapReady Docker image #2

Create and publish ASF MapReady Docker image

Create and publish ASF MapReady Docker image #2

Workflow file for this run

name: Create and publish ASF MapReady Docker image
on:
workflow_dispatch: {}
push:
paths:
- build/asf_mapready.Dockerfile
tags:
- "v*.*.*"
env:
REGISTRY: ghcr.io/asfadmin
IMAGE_NAME: mapready
TAG_NAME: ${{ github.ref_name }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
env:
AWS_DEFAULT_REGION: us-west-2
BASE_IMAGE: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG_NAME }}

Check failure on line 23 in .github/workflows/build_image.yaml

View workflow run for this annotation

GitHub Actions / Create and publish ASF MapReady Docker image

Invalid workflow file

The workflow is not valid. .github/workflows/build_image.yaml (Line: 23, Col: 19): Unrecognized named-value: 'env'. Located at position 1 within expression: env.REGISTRY
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: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: build/asf_mapready.Dockerfile
push: true
tags: ${{ env.BASE_IMAGE }}