Add gitea action to build image
All checks were successful
Build and push / build-and-push (push) Successful in 10s

This commit is contained in:
Tyler 2024-12-26 17:33:28 -05:00
parent 22d319892e
commit 2b9cde384c
Signed by: tyler
GPG Key ID: 03B27509E17EFDC8
3 changed files with 30 additions and 41 deletions

View File

@ -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

View 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 }}

View File

@ -1,7 +1,7 @@
# Filebrowser
![Gitea Release](https://img.shields.io/gitea/v/release/Infrastructure/Filebrowser?gitea_url=https%3A%2F%2Fgit.clortox.com)
[![Build Status](https://drone.clortox.com/api/badges/Infrastructure/Filebrowser/status.svg)](https://drone.clortox.com/Infrastructure/Filebrowser)
![Build Status](https://git.clortox.com/Infrastructure/Filebrowser/actions/workflows/on-tag/badge.svg?branch=master)
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.