From 1ba3ede63797677b483996dc9e816289f26bc890 Mon Sep 17 00:00:00 2001 From: flounder5 <25795672+flounder5@users.noreply.github.com> Date: Fri, 8 Dec 2023 15:10:25 -0500 Subject: [PATCH] Pipeline cleanup --- .github/workflows/workflow-build.yml | 36 +--------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/.github/workflows/workflow-build.yml b/.github/workflows/workflow-build.yml index 58b24ad..cae6eb0 100644 --- a/.github/workflows/workflow-build.yml +++ b/.github/workflows/workflow-build.yml @@ -12,38 +12,6 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set variable - run: | - if [ ${{ github.ref_type }} = 'branch' ]; then - if [ ${{ github.ref_name }} = 'main' ]; then - echo "main" - echo "BUILD_TYPE=main" >> $GITHUB_ENV - else - echo "branch" - echo "BUILD_TYPE=branch" >> $GITHUB_ENV - fi - elif [ ${{ github.ref_type }} = 'tag' ]; then - echo "tag" - echo "BUILD_TYPE=tag" >> $GITHUB_ENV - fi - shell: bash - - - name: Read exported variable - run: | - echo "OUTPUT: ${{ steps.check.test-env.test }}" - - - name: github.ref_type - run: echo ${{github.ref_type}} - - - name: github.ref_name - run: echo ${{github.ref_name}} - - - name: github.ref - run: echo ${{github.ref}} - - - name: env.BUILD_TYPE - run: echo ${{env.BUILD_TYPE}} - - name: Log in to Docker Hub uses: docker/login-action@v3 with: @@ -53,13 +21,11 @@ jobs: - name: Docker build branch run: make docker if: ${{ github.ref_type == 'branch' }} - #if: ${{ env.BUILD_TYPE == 'branch' }} - name: Docker build main run: make docker ARGS="-t latest" if: ${{ github.ref_type == 'branch' && github.ref_name == 'main' }} - #if: ${{ env.BUILD_TYPE == 'main' }} - name: Docker build tag run: make docker ARGS="-t ${{github.ref_name}}" - if: ${{ env.BUILD_TYPE == 'tag' }} + if: ${{ github.ref_type == 'tag' }}