Update .github/workflows/CI.yml
Some checks failed
Build and Push Docker Image / testing (1.24.x, ubuntu-latest) (push) Successful in 1m6s
GHA Testing / gha-testing (push) Successful in 2s
Build and Push Docker Image / build-and-push (push) Has been cancelled

This commit is contained in:
Alex Savin
2025-04-29 13:44:55 -04:00
parent 910381666e
commit 26dec18f85

View File

@ -50,10 +50,7 @@ jobs:
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
echo REPO_VERSION=${GITHUB_REF_NAME#v} >> $GITHUB_OUTPUT echo REPO_VERSION=${GITHUB_REF_NAME#v} >> $GITHUB_OUTPUT
echo RELEASE_DATE=$(date --rfc-3339=date) >> ${GITHUB_ENV} echo RELEASE_DATE=$(date --rfc-3339=date) >> ${GITHUB_ENV}
- name: Set outputs echo COMMIT_SHA_SHORT=$(echo $GITHUB_SHA | cut -c1-10) >> $GITHUB_OUTPUT
id: vars
run: |
echo COMMIT_SHORT_SHA=${${{ github.sha }}:0:10} >> $GITHUB_OUTPUT
# echo "##[set-output name=version;]VERSION=${GITHUB_REF#$"refs/tags/v"}" # echo "##[set-output name=version;]VERSION=${GITHUB_REF#$"refs/tags/v"}"
# echo "##[set-output name=version_tag;]$GITHUB_REPOSITORY:${GITHUB_REF#$"refs/tags/v"}" # echo "##[set-output name=version_tag;]$GITHUB_REPOSITORY:${GITHUB_REF#$"refs/tags/v"}"
@ -91,7 +88,7 @@ jobs:
push: true push: true
tags: | tags: |
docker.savin.nyc/${{ github.event.repository.name }}:nightly docker.savin.nyc/${{ github.event.repository.name }}:nightly
docker.savin.nyc/${{ github.event.repository.name }}:${{ steps.vars.outputs.COMMIT_SHORT_SHA }} docker.savin.nyc/${{ github.event.repository.name }}:${{ steps.vars.outputs.COMMIT_SHA_SHORT }}
# ${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }} # ${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}
# latest # latest
# build-args: | # build-args: |
@ -111,7 +108,7 @@ jobs:
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-H 'Authorization: Basic ${{ echo -n "secrets.SECRET_USERNAME:secrets.SECRET_PASSWORD" | base64 }}' \ -H 'Authorization: Basic ${{ echo -n "secrets.SECRET_USERNAME:secrets.SECRET_PASSWORD" | base64 }}' \
-H 'Authorization: token ${{ secrets.GHA_TOKEN }}' \ -H 'Authorization: token ${{ secrets.GHA_TOKEN }}' \
-d '{"ref":"${{ github.ref }}","inputs":{"Version":"${{ steps.vars.outputs.COMMIT_SHORT_SHA }}","Env":"${{ github.ref_name}}"}}' -d '{"ref":"${{ github.ref }}","inputs":{"Version":"${{ steps.vars.outputs.COMMIT_SHA_SHORT }}","Env":"${{ github.ref_name}}"}}'
shell: bash shell: bash
# - name: Auto Deploy (Dev) # - name: Auto Deploy (Dev)
## if: ${{ contains(github.ref, 'develop') and env.AUTO_DEPLOY_DEV == 'true' }} ## if: ${{ contains(github.ref, 'develop') and env.AUTO_DEPLOY_DEV == 'true' }}