init
This commit is contained in:
parent
9c6c6407d4
commit
ac0b079604
@ -1,24 +0,0 @@
|
||||
name: Deploy image to Gitea
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: docker/metadata-action@v5
|
||||
id: meta
|
||||
with:
|
||||
images: ${{ vars.CONTAINER_REGISTRY_URL }}/${{ gitea.repository }}
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ vars.CONTAINER_REGISTRY_URL }}
|
||||
username: ${{ vars.CONTAINER_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}
|
||||
- uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
32
action.yaml
Normal file
32
action.yaml
Normal file
@ -0,0 +1,32 @@
|
||||
name: Deploy image to Gitea
|
||||
description: Deploy image to Gitea
|
||||
|
||||
inputs:
|
||||
registry:
|
||||
description: "Server address of Docker registry."
|
||||
default: gitea.okami101.io
|
||||
username:
|
||||
description: "Username used to log against the Docker registry"
|
||||
required: true
|
||||
password:
|
||||
description: "Password or personal access token used to log against the Docker registry"
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- uses: docker/metadata-action@v5
|
||||
id: meta
|
||||
with:
|
||||
images: ${{ input.registry }}/${{ gitea.repository }}
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ input.registry }}
|
||||
username: ${{ input.username }}
|
||||
password: ${{ input.password }}
|
||||
- uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
Loading…
x
Reference in New Issue
Block a user