project setup
Some checks failed
Build and Push to Scaleway Registry / build (push) Failing after 23s
Runner Test / test-connection (push) Successful in 3s

This commit is contained in:
2026-02-07 19:20:20 +01:00
parent efb5e8b3e4
commit 79fb5ec55b
8 changed files with 1083 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
name: Build and Push to Scaleway Registry
on:
push:
branches:
- main
- dev
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 -f Containerfile -t ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/${{ secrets.CONTAINER_NAME }}:1.0.0 .
- name: Push the Docker Image
run: docker push ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/${{ secrets.CONTAINER_NAME }}:1.0.0

View File

@@ -0,0 +1,27 @@
name: Deploy to Scaleway Registry
on:
workflow_run:
workflows:
- Build and Push to Scaleway Registry
types:
- completed
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
- name: Deploy to Scaleway
run: |
curl -s https://raw.githubusercontent.com/scaleway/scaleway-cli/master/scripts/get.sh | sh
scw init secret-key=${{ secrets.SCALEWAY_API_KEY }} \
access-key=${{ secrets.SCALEWAY_ACCESS_KEY }} \
organization-id=${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }} \
project-id=${{ secrets.SCW_DEFAULT_PROJECT_ID }} \
send-telemetry=false \
install-autocomplete=false
scw container container deploy ${{ secrets.SERVERLESS_CONTAINER_ID }}