This commit is contained in:
Alexis Bruneteau 2025-05-31 03:38:25 +02:00
parent 9d25fbc935
commit 1a862b1efc

View File

@ -26,16 +26,16 @@ jobs:
- name: Build Docker image
run: |
docker build -t ${{ secrets.REGISTRY_URL }}/hosting-frontend:${{ github.sha }} .
docker tag ${{ secrets.REGISTRY_URL }}/hosting-frontend:${{ github.sha }} ${{ secrets.REGISTRY_URL }}/hosting-frontend:latest
docker build -t ${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_USER }}/hosting-frontend:${{ github.sha }} .
docker tag ${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_USER }}/hosting-frontend:${{ github.sha }} ${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_USER }}/hosting-frontend:latest
- name: Login to Container Registry
run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login ${{ secrets.REGISTRY_URL }} -u "${{ secrets.REGISTRY_USER }}" --password-stdin
- name: Push Docker image
run: |
docker push ${{ secrets.REGISTRY_URL }}/hosting-frontend:${{ github.sha }}
docker push ${{ secrets.REGISTRY_URL }}/hosting-frontend:latest
docker push ${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_USER }}/hosting-frontend:${{ github.sha }}
docker push ${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_USER }}/hosting-frontend:latest
- name: Setup kubectl
uses: azure/setup-kubectl@v3