dev-cronie #1
-31
@@ -1,31 +0,0 @@
|
|||||||
kind: pipeline
|
|
||||||
name: default
|
|
||||||
steps:
|
|
||||||
- name: docker
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
registry: git.jonb.io
|
|
||||||
dry_run: false
|
|
||||||
username: jblu
|
|
||||||
password:
|
|
||||||
from_secret: gittea_drone
|
|
||||||
repo: git.jonb.io/jblu/hottub
|
|
||||||
tags:
|
|
||||||
- latest
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
- name: docker-test
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
registry: git.jonb.io
|
|
||||||
dry_run: false
|
|
||||||
username: jblu
|
|
||||||
password:
|
|
||||||
from_secret: gittea_drone
|
|
||||||
repo: git.jonb.io/jblu/hottub
|
|
||||||
tags:
|
|
||||||
- dev
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- dev*
|
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
name: Build and Deploy docker container
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout main
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.jonb.io
|
||||||
|
username: '${{ gitea.actor }}'
|
||||||
|
password: '${{ secrets.JONBIO_CI }}'
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: 'git.jonb.io/jblu/hottub:latest'
|
||||||
Reference in New Issue
Block a user