Skip to content

testing humanitec image push #22

testing humanitec image push

testing humanitec image push #22

Workflow file for this run

name: Server CI
on:
push:
branches:
- main
paths:
- 'server/**'
- '.github/workflows/server-ci.yaml'
jobs:
build-and-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./server
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.20.x'
- name: SCA & Go vet
run: |
go install honnef.co/go/tools/cmd/staticcheck@latest
staticcheck ./...
go vet ./...
- name: Install dependencies
run: go get ./...
- name: Test
run: go test ./...
- name: Build server
run: go build -o server ./...
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: ./server/
# file: ./server/Dockerfile
push: true
tags: lornest/digits:latest
- name: Run curl command
run: |

Check failure on line 55 in .github/workflows/server-ci.yaml

View workflow run for this annotation

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

Invalid workflow file

You have an error in your yaml syntax on line 55
curl --request POST "https://api.humanitec.io/orgs/gl-uki/artefact-versions" \
--header "Authorization: Bearer ${{ secrets.HUMANITEC_TOKEN }}" \
--header "Content-Type: application/json" \
--data-raw '{
"name": "'${{ digits-server }}'",
"version": "'${{ github.sha }}'",
"type": "container",
"commit": "'${{ github.sha }}'",
"ref": "'${{ github.ref }}'"
}'