Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
fix(deploy): prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
philibea committed Mar 3, 2022
1 parent cc6a8f4 commit b4b99cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 26 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/deploy_storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
run: |
SAFE_GITHUB_HEAD_REF_SLUG_URL=$(echo $GITHUB_HEAD_REF_SLUG_URL | rev | cut -c-37 | rev)
([[ $GITHUB_REF == 'refs/heads/main' ]] && echo "BRANCH_SLUG=main" || echo "BRANCH_SLUG=$SAFE_GITHUB_HEAD_REF_SLUG_URL") >> $GITHUB_ENV
([[ $GITHUB_REF == 'refs/heads/main' ]] && echo "HOST=form.ui.scaleway.com" || echo "HOST=$SAFE_GITHUB_HEAD_REF_SLUG_URL.form.ui.scaleway.com") >> $GITHUB_ENV
- name: Start deployment
uses: bobheadxi/[email protected]
Expand All @@ -50,25 +49,23 @@ jobs:
- name: Build
uses: docker/[email protected]
env:
IMAGE: ${{ env.IMAGE_NAME }}:v-${{ env.BRANCH_SLUG }}
IMAGE: ${{ env.IMAGE_NAME }}:${{ env.BRANCH_SLUG }}
with:
push: true
tags: ${{ env.IMAGE }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max

- name: Deploy Serverless Container Scaleway
uses: philibea/[email protected].4
uses: philibea/[email protected].5
id: deploy
with:
type: "deploy"
scw_access_key: ${{ secrets.SCW_ACCESS_KEY }}
scw_secret_key: ${{ secrets.SCW_SECRET_KEY }}
scw_project_id: ${{ secrets.SCW_PROJECT_ID }}
scw_containers_namespace_id: ${{ secrets.SCW_CONTAINERS_NAMESPACE_ID }}
scw_registry: ${{ env.IMAGE_NAME }}:${{ env.BRANCH_SLUG }}
scw_dns: "form.ui.scaleway.com"
scw_containers_namespace_id: "58096e1c-c903-4fa5-af46-f721f2574a2f"
scw_registry: ${{ env.IMAGE_NAME }}:v-${{ env.BRANCH_SLUG }}
scw_container_port: "80"


- name: Update deployment status
Expand All @@ -80,7 +77,6 @@ jobs:
token: ${{ secrets.GH_TOKEN }}
status: ${{ job.status }}
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
# env_url: https://${{ env.HOST }}
env_url: ${{ steps.deploy.outputs.url }}

- name: Move cache
Expand Down
18 changes: 0 additions & 18 deletions docker-compose.yaml

This file was deleted.

0 comments on commit b4b99cd

Please sign in to comment.