diff --git a/.gitea/workflows/deploy_staging.yaml b/.gitea/workflows/deploy_staging.yaml index 5db0623..856f620 100644 --- a/.gitea/workflows/deploy_staging.yaml +++ b/.gitea/workflows/deploy_staging.yaml @@ -59,15 +59,6 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Verify required files exist - run: | - echo "Checking for config file..." - if [ ! -f ".build/config/staging.yaml" ]; then - echo "Error: staging.yaml not found!" - exit 1 - fi - echo "All required files exist" - - name: Extract Git metadata id: git-metadata run: | @@ -90,22 +81,8 @@ jobs: echo "Building image for ${{ inputs.environment }} environment" echo "Git tag : ${{ steps.git-metadata.outputs.GIT_TAG }}" echo "Git sha : ${{ steps.git-metadata.outputs.GIT_SHA }}" - echo "Image tag : ${{ steps.git-metadata.outputs.GIT_TAG != "none" && steps.git-metadata.outputs.GIT_TAG || steps.git-metadata.outputs.GIT_SHA }}" - IMAGE_TAG=${{ inputs.environment }}-${{ steps.git-metadata.outputs.GIT_TAG != "none" && steps.git-metadata.outputs.GIT_TAG || steps.git-metadata.outputs.GIT_SHA }} - - docker build \ - --build-arg BUILD_LDFLAGS="-w -s" \ - --build-arg CONFIG_FILE_PATH=$CONFIG_FILE \ - -t $IMAGE_NAME:$IMAGE_TAG \ - -t $IMAGE_NAME:latest \ - . - - docker tag $IMAGE_NAME:$IMAGE_TAG $IMAGE_NAME:latest - - docker push $IMAGE_NAME:$IMAGE_TAG - docker push $IMAGE_NAME:latest - - echo "Pushed image $IMAGE_NAME:$IMAGE_TAG and :latest" + echo "Image tag : '${{ steps.git-metadata.outputs.GIT_TAG != "none" && steps.git-metadata.outputs.GIT_TAG || steps.git-metadata.outputs.GIT_SHA }}'" + - name: Install dependencies run: |