Add gitea action to build image
All checks were successful
Build and push / build-and-push (push) Successful in 10s
All checks were successful
Build and push / build-and-push (push) Successful in 10s
This commit is contained in:
parent
22d319892e
commit
2b9cde384c
40
.drone.yml
40
.drone.yml
@ -1,40 +0,0 @@
|
|||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: build-container
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build-and-push
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
repo: git.clortox.com/infrastructure/filebrowser
|
|
||||||
registry: git.clortox.com
|
|
||||||
username:
|
|
||||||
from_secret: gitea_docker_username
|
|
||||||
password:
|
|
||||||
from_secret: gitea_docker_password
|
|
||||||
tags:
|
|
||||||
- latest
|
|
||||||
- ${DRONE_TAG}
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
- name: notify
|
|
||||||
image: clortox/drone-ntfy
|
|
||||||
settings:
|
|
||||||
URL: https://ntfy.clortox.com
|
|
||||||
USERNAME: drone
|
|
||||||
PASSWORD:
|
|
||||||
from_secret: ntfy_password
|
|
||||||
TOPIC: drone-builds
|
|
||||||
MESSAGE: Filebrowser ${DRONE_TAG} has compiled!
|
|
||||||
CLICK: https://drone.clortox.com/Infrastructure/filebrowser
|
|
||||||
TITLE: Filebrowser
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- tag
|
|
29
.gitea/workflows/on-tag.yaml
Normal file
29
.gitea/workflows/on-tag.yaml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Build and push
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Log in to container registry
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: git.clortox.com
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.clortox.com/infrastructure/filebrowser:latest
|
||||||
|
git.clortox.com/infrastructure/filebrowser:${{ github.ref_name }}
|
@ -1,7 +1,7 @@
|
|||||||
# Filebrowser
|
# Filebrowser
|
||||||
|
|
||||||

|

|
||||||
[](https://drone.clortox.com/Infrastructure/Filebrowser)
|

|
||||||
|
|
||||||
An specfic contianer build of [filebrowser](https://filebrowser.org) that allows for some configuration using environment variables.
|
An specfic contianer build of [filebrowser](https://filebrowser.org) that allows for some configuration using environment variables.
|
||||||
Intended to be used as a sidecar for kubernetes pods.
|
Intended to be used as a sidecar for kubernetes pods.
|
||||||
|
Loading…
Reference in New Issue
Block a user