Skip to content

chore: Upload container with serverless framework #9

chore: Upload container with serverless framework

chore: Upload container with serverless framework #9

Workflow file for this run

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.SCALEWAY_API_KEY }}
registry: ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}
- name: Build the Docker image
run: docker build . -t ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/ae-data-processing:latest
- name: Push the Docker Image
run: docker push ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/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: deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.SCW_PROJECT_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SCW_TOKEN }}