ci: New local docker
This commit is contained in:
@@ -1,24 +1,22 @@
|
|||||||
|
---
|
||||||
name: Push to local registry
|
name: Push to local registry
|
||||||
run-name: ${{ gitea.actor }} is pushing -> local Docker
|
run-name: ${{ gitea.actor }} is pushing -> local Docker
|
||||||
on: [push]
|
on:
|
||||||
|
- push
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build and push image
|
name: Build and push image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: catthehacker/ubuntu:act-latest
|
container: catthehacker/ubuntu:act-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Login to Docker Registry
|
- name: Login to Docker Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: gitea.likemath.ru
|
registry: gitea.likemath.ru
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
@@ -27,5 +25,4 @@ jobs:
|
|||||||
tags:
|
tags:
|
||||||
- alex/s3-mirror:latest
|
- alex/s3-mirror:latest
|
||||||
- s3-mirror:latest
|
- s3-mirror:latest
|
||||||
# platforms: linux/amd64,linux/arm64
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user