Skip to content

Commit

Permalink
Update continious_integration.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Busk authored Dec 17, 2024
1 parent b5b8ea2 commit c27d721
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/continious_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set current date as env variable
run: echo "VERSION_DATE=$(date +'%d.%m.%Y')" >> $GITHUB_ENV

- name: Set current short hash as env variable
run: echo "VERSION_NO=$(git rev-parse --short HEAD)" >> $GITHUB_ENV

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
Expand Down Expand Up @@ -56,7 +61,7 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VERSION_NO=${{ github.sha }}
VERSION_NO=${{ env.VERSION_NO }}
VERSION_DATE=${{ env.VERSION_DATE }}
- name: 'Auto-deploy to dev'
Expand All @@ -65,4 +70,4 @@ jobs:
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: "set image deployment/possible-x-portal -n ${{ env.K8S_NAMESPACE }} possible-x-portal=${{ env.REGISTRY }}/${{ env.REGISTRY_NAMESPACE }}/edc-portal:${{ github.sha }}"
args: "set image deployment/possible-x-portal -n ${{ env.K8S_NAMESPACE }} possible-x-portal=${{ env.REGISTRY }}/${{ env.REGISTRY_NAMESPACE }}/edc-portal:${{ github.sha }}"

0 comments on commit c27d721

Please sign in to comment.