Skip to content

Merge branch 'main' into feat/container #2

Merge branch 'main' into feat/container

Merge branch 'main' into feat/container #2

Workflow file for this run

name: Build and containerise saturn

Check failure on line 1 in .github/workflows/container.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/container.yml

Invalid workflow file

(Line: 26, Col: 17): Unexpected symbol: '('. Located at position 24 within expression: github.ref_name.replace('/', '-')
on:
workflow_dispatch:
jobs:
build:
name: Build image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout Repository
id: checkout
uses: actions/checkout@v5
with:
ref: ${{ github.ref }}
- name: Build Container
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: saturn
tags: latest ${{ github.sha }} ${{ github.ref_name.replace('/', '-') }}
containerfiles: |
./Containerfile
- name: Push to GHCR.io
id: push-image
uses: redhat-actions/push-to-registry@v2
with:
tags: ${{ steps.build-image.outputs.tags }}
registry: ghcr.io/${{ github.repository_owner }}
image: saturn
username: ${{ github.actor }}
password: ${{ github.token }}
extra-args: |
--disable-content-trust