Trying to fix devops workflow stg
This commit is contained in:
parent
877387e1a4
commit
47013e3aca
6
.github/workflows/stg.yml
vendored
6
.github/workflows/stg.yml
vendored
@ -36,9 +36,9 @@ jobs:
|
|||||||
id: vars
|
id: vars
|
||||||
run: echo "COMMIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
run: echo "COMMIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||||
- name: Build the Docker Image
|
- name: Build the Docker Image
|
||||||
run: docker build . -t ${{ env.CONTAINER_REGISTRY_ENDPOINT_LECOFFRE }}/${{ env.IMAGE_NAME }}
|
run: docker build . -t ${{ env.CONTAINER_REGISTRY_ENDPOINT_LECOFFRE }}/${{ env.IMAGE_NAME }}:${{ env.COMMIT_SHA }}
|
||||||
- name: Push the Docker Image to Scaleway Container Registry
|
- name: Push the Docker Image to Scaleway Container Registry
|
||||||
run: docker push ${{ env.CONTAINER_REGISTRY_ENDPOINT_LECOFFRE }}/${{ env.IMAGE_NAME }}
|
run: docker push ${{ env.CONTAINER_REGISTRY_ENDPOINT_LECOFFRE }}/${{ env.IMAGE_NAME }}:${{ env.COMMIT_SHA }}
|
||||||
|
|
||||||
deploy-to-scaleway-lecoffre:
|
deploy-to-scaleway-lecoffre:
|
||||||
needs: build-and-push-image-lecoffre
|
needs: build-and-push-image-lecoffre
|
||||||
@ -68,7 +68,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
done <<< "$ENV_VARS"
|
done <<< "$ENV_VARS"
|
||||||
env_string=$(echo $env_string | sed 's/ $//')
|
env_string=$(echo $env_string | sed 's/ $//')
|
||||||
scw container container update ${{ env.CONTAINER_ID }} $env_string registry-image=${{ env.CONTAINER_REGISTRY_ENDPOINT_LECOFFRE }}/${{ env.IMAGE_NAME }}
|
scw container container update ${{ env.CONTAINER_ID }} $env_string registry-image=${{ env.CONTAINER_REGISTRY_ENDPOINT_LECOFFRE }}/${{ env.IMAGE_NAME }}:${{ env.COMMIT_SHA }}
|
||||||
env:
|
env:
|
||||||
ENV_VARS: ${{ secrets.ENV }}
|
ENV_VARS: ${{ secrets.ENV }}
|
||||||
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY_LECOFFRE }}
|
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY_LECOFFRE }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user