connectivity-check/.forgejo/workflows/docker.yml
samuel-p 513d882734
All checks were successful
Build and Push Docker image / Build and Push Docker image (push) Successful in 28s
Update .forgejo/workflows/docker.yml
2025-03-16 20:22:51 +00:00

30 lines
797 B
YAML

name: Build and Push Docker image
on:
push:
branches:
- main
jobs:
docker:
name: Build and Push Docker image
runs-on: docker
steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to cr.sp-codes.de
uses: docker/login-action@v3
with:
registry: cr.sp-codes.de
username: ${{ secrets.CR_USERNAME }}
password: ${{ secrets.CR_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: |
spcodes/connectivity-check:latest
cr.sp-codes.de/sp-codes/connectivity-check:latest