From ef1632fca5091566647cdecec8c558af5515a7dd Mon Sep 17 00:00:00 2001 From: Lorne Stalker Date: Fri, 15 Dec 2023 11:44:38 +0000 Subject: [PATCH] using humanitec action --- .github/workflows/server-ci.yaml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/server-ci.yaml b/.github/workflows/server-ci.yaml index cfc902d..4e9f390 100644 --- a/.github/workflows/server-ci.yaml +++ b/.github/workflows/server-ci.yaml @@ -51,15 +51,8 @@ jobs: push: true tags: lornest/digits:latest - - name: Run curl command - run: | - 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 }}'" - }' + - name: Push to Humanitec + uses: humanitec/build-push-to-humanitec@v1 + with: + humanitec-token: ${{ secrets.HUMANITEC_TOKEN }} + organisation: gl-uki