ci: Add docker and registry integration
This commit is contained in:
35
.gitea/workflows/local-docker.yaml
Normal file
35
.gitea/workflows/local-docker.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Push to local registry
|
||||
run-name: ${{ gitea.actor }} is pushing -> local Docker
|
||||
on: [push]
|
||||
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build and push image
|
||||
runs-on: ubuntu-latest
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
jobs:
|
||||
build:
|
||||
name: Build and push image
|
||||
runs-on: ubuntu-latest
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to Docker Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: gitea.likemath.ru
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
# platforms: linux/amd64,linux/arm64
|
||||
|
||||
Reference in New Issue
Block a user