mirror of
https://codeberg.org/spire/docker-comp-server.git
synced 2026-06-03 18:14:09 +02:00
ci
This commit is contained in:
parent
da619be499
commit
3700e11d2d
1 changed files with 8 additions and 7 deletions
30
.forgejo/workflows/docker.yaml
Normal file
30
.forgejo/workflows/docker.yaml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
name: docker-build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
- "master"
|
||||
repository_dispatch:
|
||||
types: [build]
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up Docker Buildx
|
||||
uses: https://github.com/docker/setup-buildx-action@v3
|
||||
- name: Login to DockerHub
|
||||
uses: https://github.com/docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: https://github.com/docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
load: true
|
||||
tags: spiretf/docker-comp-server:latest
|
||||
- name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue