Fixing slugify issue
authorDavid Négrier <d.negrier@thecodingmachine.com>
Mon, 13 Apr 2020 16:15:27 +0000 (18:15 +0200)
committerDavid Négrier <d.negrier@thecodingmachine.com>
Mon, 13 Apr 2020 16:44:12 +0000 (18:44 +0200)
.github/workflows/build-and-deploy.yml

index 297c84055ad4d0f414da2b7b4806de6c084f4d73..f2608367450310cfdb5d4ba35dbd4c14a296ceea 100644 (file)
@@ -18,6 +18,10 @@ jobs:
       - name: Checkout
         uses: actions/checkout@v2
 
+
+      # Create a slugified value of the branch
+      - uses: rlespinasse/github-slug-action@master
+
       - name: "Build and push front image"
         uses: docker/build-push-action@v1
         with:
@@ -26,7 +30,7 @@ jobs:
           username: ${{ secrets.DOCKER_USERNAME }}
           password: ${{ secrets.DOCKER_PASSWORD }}
           repository: thecodingmachine/workadventure-front
-          tag_with_ref: true
+          tags: ${{ env.GITHUB_REF_SLUG }}
           add_git_labels: true
 
   build-back:
@@ -38,6 +42,9 @@ jobs:
       - name: Checkout
         uses: actions/checkout@v2
 
+      # Create a slugified value of the branch
+      - uses: rlespinasse/github-slug-action@master
+
       - name: "Build and push back image"
         uses: docker/build-push-action@v1
         with:
@@ -46,7 +53,7 @@ jobs:
           username: ${{ secrets.DOCKER_USERNAME }}
           password: ${{ secrets.DOCKER_PASSWORD }}
           repository: thecodingmachine/workadventure-back
-          tag_with_ref: true
+          tags: ${{ env.GITHUB_REF_SLUG }}
           add_git_labels: true
 
   deeploy: