From 307e5f8735032864d16ce7f38a4f9c8b912f3088 Mon Sep 17 00:00:00 2001
From: Chris Pastl <chris@crispybits.app>
Date: Wed, 28 Feb 2024 17:05:22 +0100
Subject: [PATCH] refactor: push image as 'main' instead of 'unstable'

---
 .gitlab-ci.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2b12bdb..47cd7b9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -57,15 +57,15 @@ docker-push:
       else docker login -u "$DOCKER_ID" -p "$DOCKER_HUB_AUTH"
       fi
   script:
-    # every commit on main branch should build and push image as unstable
+    # every commit on main branch should build and push image as main
     # elseif its a feature branch build and push to gitlab registry
     # else it is from a tag (enforced by gitlab-ci rules)
     # hint: tags are references independent of branches
     # hint: feature branches must begin with "feat"
     - |
       if [ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]
-        then docker build -t $AURA_IMAGE_NAME:unstable .
-        docker push $AURA_IMAGE_NAME:unstable 
+        then docker build -t $AURA_IMAGE_NAME:main .
+        docker push $AURA_IMAGE_NAME:main 
       elif expr "$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME" : ^feat > /dev/null
         then docker build -t $AURA_IMAGE_NAME -t $CI_REGISTRY_IMAGE:$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME .
         docker push $CI_REGISTRY_IMAGE:$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
-- 
GitLab