project setup
This commit is contained in:
23
.gitea/workflows/build-and-push-container.yaml
Normal file
23
.gitea/workflows/build-and-push-container.yaml
Normal 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
|
||||
Reference in New Issue
Block a user