Skip to content

Updated readme

Updated readme #61

Workflow file for this run

name: Build Docker Image - CI
on:
release:
types:
- published
push:
branches:
- main
- master
- 'release-\d.\d\d'
jobs:
lint:
- uses: nosborn/[email protected]

Check failure on line 16 in .github/workflows/ci-file.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-file.yaml

Invalid workflow file

You have an error in your yaml syntax on line 16
with:
files: README.md
build:
name: Build and push docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set image tag
shell: bash
run: |
image_tag=latest
if [ ${{ github.ref }} == 'refs/heads/release-\d.\d\d' ]; then
branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
version_digits=$(echo ${branch} | tr -d -c 0-9)
image_tag=v$(echo ${version_digits} | cut -b 1).$(echo ${version_digits:1})
fi
echo "IMAGE_TAG=${image_tag}" >> $GITHUB_OUTPUT
id: set_image_tag
- name: Set up QEMU
run: |
ls -l
cat main/main.go
echo "Variable is ${{ steps.set_image_tag.outputs.IMAGE_TAG }}"