Compare commits
No commits in common. "v1.0.1" and "v1.0.0" have entirely different histories.
3 changed files with 6 additions and 67 deletions
|
@ -1,8 +1,6 @@
|
||||||
name: Release
|
name: Release
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|
59
README.md
59
README.md
|
@ -1,59 +0,0 @@
|
||||||
## Docker build
|
|
||||||
|
|
||||||
### Description
|
|
||||||
|
|
||||||
Builds a docker image
|
|
||||||
|
|
||||||
### Inputs
|
|
||||||
|
|
||||||
| name | description | required | default |
|
|
||||||
| --- | --- | --- | --- |
|
|
||||||
| `name` | <p>Directory name</p> | `true` | `""` |
|
|
||||||
| `REGISTRY_USERNAME` | <p>Registry username</p> | `true` | `""` |
|
|
||||||
| `REGISTRY_TOKEN` | <p>Registry token</p> | `true` | `""` |
|
|
||||||
| `DOCKER_USERNAME` | <p>Docker username</p> | `true` | `""` |
|
|
||||||
| `DOCKER_PASSWORD` | <p>Docker password</p> | `true` | `""` |
|
|
||||||
|
|
||||||
|
|
||||||
### Runs
|
|
||||||
|
|
||||||
This action is a `composite` action.
|
|
||||||
|
|
||||||
### Usage
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
- uses: ***PROJECT***@***VERSION***
|
|
||||||
with:
|
|
||||||
name:
|
|
||||||
# Directory name
|
|
||||||
#
|
|
||||||
# Required: true
|
|
||||||
# Default: ""
|
|
||||||
|
|
||||||
REGISTRY_USERNAME:
|
|
||||||
# Registry username
|
|
||||||
#
|
|
||||||
# Required: true
|
|
||||||
# Default: ""
|
|
||||||
|
|
||||||
REGISTRY_TOKEN:
|
|
||||||
# Registry token
|
|
||||||
#
|
|
||||||
# Required: true
|
|
||||||
# Default: ""
|
|
||||||
|
|
||||||
DOCKER_USERNAME:
|
|
||||||
# Docker username
|
|
||||||
#
|
|
||||||
# Required: true
|
|
||||||
# Default: ""
|
|
||||||
|
|
||||||
DOCKER_PASSWORD:
|
|
||||||
# Docker password
|
|
||||||
#
|
|
||||||
# Required: true
|
|
||||||
# Default: ""
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
12
action.yml
12
action.yml
|
@ -21,26 +21,26 @@ runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: https://git.kjan.de/actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
uses: https://git.kjan.de/actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: https://git.kjan.de/actions/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3
|
uses: https://git.kjan.de/actions/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to local Docker Registry
|
- name: Login to local Docker Registry
|
||||||
uses: https://git.kjan.de/actions/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
|
uses: https://git.kjan.de/actions/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.kjan.de
|
registry: git.kjan.de
|
||||||
username: ${{ inputs.REGISTRY_USERNAME }}
|
username: ${{ inputs.REGISTRY_USERNAME }}
|
||||||
password: ${{ inputs.REGISTRY_TOKEN }}
|
password: ${{ inputs.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Login to Docker.io Registry
|
- name: Login to Docker.io Registry
|
||||||
uses: https://git.kjan.de/actions/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
|
uses: https://git.kjan.de/actions/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ inputs.DOCKER_USERNAME }}
|
username: ${{ inputs.DOCKER_USERNAME }}
|
||||||
password: ${{ inputs.DOCKER_PASSWORD }}
|
password: ${{ inputs.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Cache Docker layers
|
- name: Cache Docker layers
|
||||||
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /tmp/.buildx-cache
|
path: /tmp/.buildx-cache
|
||||||
key: ${{ runner.os }}-${{ inputs.name }}-${{ github.sha }}
|
key: ${{ runner.os }}-${{ inputs.name }}-${{ github.sha }}
|
||||||
|
@ -48,7 +48,7 @@ runs:
|
||||||
${{ runner.os }}-${{ inputs.name }}-
|
${{ runner.os }}-${{ inputs.name }}-
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: https://git.kjan.de/actions/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6
|
uses: https://git.kjan.de/actions/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
cache-from: type=local,src=/tmp/.buildx-cache
|
cache-from: type=local,src=/tmp/.buildx-cache
|
||||||
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
|
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue