Add Dockerfile + nginx conf + add woodpecker CI file

This commit is contained in:
Joris Bertomeu
2024-09-26 15:57:25 +02:00
parent 023f263361
commit db1390e7a6
4 changed files with 132 additions and 0 deletions

34
.woodpecker.yaml Normal file
View File

@@ -0,0 +1,34 @@
# Build and publish Docker images for multiple architectures.
#
# Pushing an image to codeberg's container registry
# The package owner will be the repo owner.
#
# This config also shows usage of yaml aliases and
# was taken from https://codeberg.org/6543/docker-images/src/commit/37e29c227717c1c07d2776cddcf14725bf952875/.woodpecker/hello.yml
when:
branch: main
event: [push]
variables:
- &file Dockerfile
- &repo 192.168.1.230:5000/bertomlab/crawlflix/front
steps:
publish:
image: woodpeckerci/plugin-docker-buildx
settings:
dockerfile: *file
insecure: true
platforms: linux/arm/v7,linux/arm64/v8,linux/amd64
repo: *repo
tags:
- latest
- ${CI_COMMIT_SHA}
username:
from_secret: docker_registry_username
password:
from_secret: docker_password
username: ${CI_REPO_OWNER}
password:
from_secret: cb_token