2023-12-07 21:45:43 +00:00
|
|
|
name: Build and Push Docker image
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
name: Build and Push Docker image
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
|
|
|
steps:
|
|
|
|
- name: Login to Docker Hub
|
2024-07-23 03:00:26 +00:00
|
|
|
uses: docker/login-action@v3
|
2023-12-07 21:45:43 +00:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Login to cr.sp-codes.de
|
2024-07-23 03:00:26 +00:00
|
|
|
uses: docker/login-action@v3
|
2023-12-07 21:45:43 +00:00
|
|
|
with:
|
|
|
|
registry: cr.sp-codes.de
|
|
|
|
username: ${{ secrets.CR_USERNAME }}
|
|
|
|
password: ${{ secrets.CR_TOKEN }}
|
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v4
|
|
|
|
with:
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
samuelph/connectivity-check:latest
|
|
|
|
cr.sp-codes.de/samuel-p/connectivity-check:latest
|