fix: Forgot an import #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continous Deployment | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Login to Scaleway Container Registry | |
uses: docker/login-action@v3 | |
with: | |
username: nologin | |
password: ${{ secrets.SCW_SECRET_ACCESS_KEY }} | |
registry: ${{ secrets.SCW_REGISTRY }} | |
- name: Build the Docker image | |
run: docker build . -t ${{ secrets.SCW_REGISTRY }}/ae-data-processing:latest | |
- name: Push the Docker Image | |
run: docker push ${{ secrets.SCW_REGISTRY }}/ae-data-processing:latest | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- run: yarn install --frozen-lockfile | |
- name: serverless deploy | |
uses: serverless/[email protected] | |
with: | |
args: -c "serverless plugin install --name serverless-scaleway-functions && serverless deploy" | |
entrypoint: /bin/sh | |
env: | |
SCW_ACCESS_KEY_ID: ${{ secrets.SCW_ACCESS_KEY_ID }} | |
SCW_SECRET_ACCESS_KEY: ${{ secrets.SCW_SECRET_ACCESS_KEY }} | |
SCW_REGISTRY: ${{ secrets.SCW_REGISTRY }} |