Skip to content

Container creation support #1

Container creation support

Container creation support #1

Workflow file for this run

name: Publish test CA image
on:
# Capture this event so that gradle caches are updated when a PR is merged to develop
# More information on why: https://github.com/gradle/gradle-build-action#using-the-caches-read-only
push:
branches:
- develop
paths:
- '.github/dev-containers/testca/**'
- 'ansible/roles/xroad-ca/**'
# Temporary for testing
pull_request:
types: [opened, synchronize, reopened]
paths:
- '.github/dev-containers/testca/**'
- 'ansible/roles/xroad-ca/**'
env:
REGISTRY: ghcr.io
jobs:
PublishCS:
name: Publish test CA image
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Initialize docker setup
working-directory: ./.github/dev-containers/testca
run: ./init_context.sh
- 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: ${{ GITHUB_WORKSPACE }}/.github/dev-containers/testca

Check failure on line 40 in .github/workflows/publish_testca.yaml

View workflow run for this annotation

GitHub Actions / Publish test CA image

Invalid workflow file

The workflow is not valid. .github/workflows/publish_testca.yaml (Line: 40, Col: 20): Unrecognized named-value: 'GITHUB_WORKSPACE'. Located at position 1 within expression: GITHUB_WORKSPACE
push: true
tags: ghcr.io/nordic-institute/xrddev-testca:latest