Skip to content

Release

Release #2

Workflow file for this run

name: Release
on:
release:
types: [published]
env:
REGISTRY: ghcr.io
jobs:
build-and-push-image:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- dockerfile: ./Dockerfile
image: ${{ env.REGISTRY }}/ksmit799/ardos

Check failure on line 18 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 18, Col: 20): Unrecognized named-value: 'env'. Located at position 1 within expression: env.REGISTRY .github/workflows/release.yml (Line: 20, Col: 20): Unrecognized named-value: 'env'. Located at position 1 within expression: env.REGISTRY
- dockerfile: ./Dockerfile-legacy
image: ${{ env.REGISTRY }}/ksmit799/ardos-legacy
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Login to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ matrix.image }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: ${{ matrix.dockerfile }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}