Compare commits
No commits in common. "main" and "legacy_dev" have entirely different histories.
main
...
legacy_dev
24
.github/workflows/prd.yml
vendored
24
.github/workflows/prd.yml
vendored
@ -1,8 +1,8 @@
|
|||||||
name: Prod - Build & Deploy to Scaleway
|
name: Prod - Build & Deploy to Scaleway
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
schedule:
|
||||||
branches: [main]
|
- cron: '00 20 * * *' # 20:00 UTC -> 22:00 CEST
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|
||||||
@ -18,16 +18,16 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
#- name: Setup SSH
|
- name: Setup SSH
|
||||||
# run: |
|
run: |
|
||||||
# mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
# echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||||
# chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
# ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
|
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
|
||||||
# env:
|
env:
|
||||||
# SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
#- name: Copy SSH
|
- name: Copy SSH
|
||||||
# run: cp ~/.ssh/id_rsa id_rsa
|
run: cp ~/.ssh/id_rsa id_rsa
|
||||||
- name: Login to Scaleway Container Registry
|
- name: Login to Scaleway Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
|
@ -7,10 +7,10 @@ COPY package.json ./
|
|||||||
|
|
||||||
RUN apk update && apk add openssh-client git
|
RUN apk update && apk add openssh-client git
|
||||||
|
|
||||||
#COPY id_rsa /root/.ssh/id_rsa
|
COPY id_rsa /root/.ssh/id_rsa
|
||||||
#RUN chmod 600 ~/.ssh/id_rsa
|
RUN chmod 600 ~/.ssh/id_rsa
|
||||||
#RUN eval "$(ssh-agent -s)" && ssh-add /root/.ssh/id_rsa
|
RUN eval "$(ssh-agent -s)" && ssh-add /root/.ssh/id_rsa
|
||||||
#RUN ssh-keyscan github.com smart-chain-fr/leCoffre-resources.git >> /root/.ssh/known_hosts
|
RUN ssh-keyscan github.com smart-chain-fr/leCoffre-resources.git >> /root/.ssh/known_hosts
|
||||||
|
|
||||||
RUN npm install --frozen-lockfile
|
RUN npm install --frozen-lockfile
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user