From 4c595b9ee65721de5913852ed1887d35272ce010 Mon Sep 17 00:00:00 2001 From: Robert Grancsa Date: Fri, 10 May 2024 17:01:13 +0300 Subject: [PATCH] Added homework 3 Signed-off-by: Robert Grancsa --- .github/workflows/checker.yml | 5 +---- .github/workflows/publish.yml | 7 ++++--- social_media.c | 3 +-- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/checker.yml b/.github/workflows/checker.yml index 9cf3275..d074319 100644 --- a/.github/workflows/checker.yml +++ b/.github/workflows/checker.yml @@ -8,14 +8,11 @@ jobs: checker: runs-on: ubuntu-latest container: - image: ghcr.io/sd-pub/tema3:latest + image: ghcr.io/${{ github.repository }}:latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Run tests run: | - pwd - ls - ls checker/ hw_checker --legacy \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a071eae..2324cd7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,6 +5,7 @@ on: push: branches: - update_image + create: jobs: publish-sd-tema-3-image: @@ -21,6 +22,6 @@ jobs: - name: Build the sd-tema-3 Docker image run: | - docker build . --tag ghcr.io/sd-pub/tema3:latest - docker run ghcr.io/sd-pub/tema3:latest - docker push ghcr.io/sd-pub/tema3:latest \ No newline at end of file + docker build . --tag ghcr.io/${{ github.repository }}:latest + docker run ghcr.io/${{ github.repository }}:latest + docker push ghcr.io/${{ github.repository }}:latest \ No newline at end of file diff --git a/social_media.c b/social_media.c index 6b8d325..139bb2b 100644 --- a/social_media.c +++ b/social_media.c @@ -3,14 +3,13 @@ */ #include #include +#include #include "users.h" #include "friends.h" #include "posts.h" #include "feed.h" -extern graph_t connections; - /** * Initializez every task based on which task we are running */