73
All checks were successful
Go Linter / Run golangci-lint (api_gateway) (push) Has been skipped
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Build golang services (api_gateway) (push) Has been skipped
Go Linter / Tag Commit (push) Has been skipped
Go Linter / Push Docker Images (api_gateway) (push) Successful in 23s
All checks were successful
Go Linter / Run golangci-lint (api_gateway) (push) Has been skipped
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Build golang services (api_gateway) (push) Has been skipped
Go Linter / Tag Commit (push) Has been skipped
Go Linter / Push Docker Images (api_gateway) (push) Successful in 23s
This commit is contained in:
@@ -14,6 +14,7 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
name: Run golangci-lint
|
name: Run golangci-lint
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
if: 0
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -73,7 +74,7 @@ jobs:
|
|||||||
push:
|
push:
|
||||||
name: Push Docker Images
|
name: Push Docker Images
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
needs: lint
|
# needs: lint
|
||||||
if: ${{ gitea.ref == 'refs/heads/master' || gitea.ref == 'refs/heads/release' }}
|
if: ${{ gitea.ref == 'refs/heads/master' || gitea.ref == 'refs/heads/release' }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
@@ -91,7 +92,7 @@ jobs:
|
|||||||
REPO: ${{ github.repository }}
|
REPO: ${{ github.repository }}
|
||||||
run: |
|
run: |
|
||||||
GIT_SHA=$(git rev-parse --short HEAD)
|
GIT_SHA=$(git rev-parse --short HEAD)
|
||||||
GIT_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo 'none')
|
GIT_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "none")
|
||||||
TARGET_ENV=${{ github.ref == 'refs/heads/release' && 'staging' || 'production' }}
|
TARGET_ENV=${{ github.ref == 'refs/heads/release' && 'staging' || 'production' }}
|
||||||
|
|
||||||
echo "GIT_SHA=${GIT_SHA}" >> $GITHUB_OUTPUT
|
echo "GIT_SHA=${GIT_SHA}" >> $GITHUB_OUTPUT
|
||||||
@@ -115,7 +116,7 @@ jobs:
|
|||||||
GIT_TAG: ${{ steps.git-metadata.outputs.GIT_TAG }}
|
GIT_TAG: ${{ steps.git-metadata.outputs.GIT_TAG }}
|
||||||
GIT_SHA: ${{ steps.git-metadata.outputs.GIT_SHA }}
|
GIT_SHA: ${{ steps.git-metadata.outputs.GIT_SHA }}
|
||||||
run: |
|
run: |
|
||||||
IMAGE_TAG=$TARGET_ENV-$($GIT_TAG != 'none' && echo $GIT_TAG || echo $GIT_SHA)
|
IMAGE_TAG=$TARGET_ENV-$($GIT_TAG != "none" && echo $GIT_TAG || echo $GIT_SHA)
|
||||||
|
|
||||||
echo "IMAGE_NAME=molvaapp/${{ steps.git-metadata.outputs.REPO_NAME }}" >> $GITHUB_OUTPUT
|
echo "IMAGE_NAME=molvaapp/${{ steps.git-metadata.outputs.REPO_NAME }}" >> $GITHUB_OUTPUT
|
||||||
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_OUTPUT
|
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
Reference in New Issue
Block a user