From ee3911fc6991acbd5f6a804d5ed8ad6732b3847e Mon Sep 17 00:00:00 2001 From: karam barakat Date: Wed, 25 Jan 2023 23:12:40 -0800 Subject: [PATCH] fix tag action --- .github/workflows/strapi-docker-image.yml | 21 +++++++++------------ components/Separator.module.css | 10 +++++----- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/workflows/strapi-docker-image.yml b/.github/workflows/strapi-docker-image.yml index c237f3e..8980882 100644 --- a/.github/workflows/strapi-docker-image.yml +++ b/.github/workflows/strapi-docker-image.yml @@ -1,18 +1,12 @@ name: Strapi Docker Image on: - workflow_dispatch: - inputs: - version: - description: version to be added to the image tag - required: ture - type: string - image: - description: the name of the image - default: portfolio-strapi-tunnel - required: true + push: + tags: + - v\d+ -# +env: + image: stapi-portfolio jobs: build: @@ -25,10 +19,13 @@ jobs: with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_TOKEN }} + - name: set release version + id: version + run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT - name: Build and push Docker image uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc with: context: ./strapi push: true - tags: ${{ inputs.image }}:${{ inputs.version }} + tags: karam99n/${{ env.image }}:${{ steps.version.outputs.tag }} diff --git a/components/Separator.module.css b/components/Separator.module.css index 2bf065e..06456c2 100644 --- a/components/Separator.module.css +++ b/components/Separator.module.css @@ -10,8 +10,8 @@ } .noauto { - display: grid, - place-content: center, - place-items: center, - align-self: center, -} \ No newline at end of file + display: grid; + place-content: center; + place-items: center; + align-self: center; +}