migrated to workflows
All checks were successful
Build and Push Docker image / Build and Push Docker image (push) Successful in 22s

This commit is contained in:
Samuel Philipp 2023-12-07 22:45:43 +01:00
parent b63ad02710
commit b6d7f15c3c
4 changed files with 47 additions and 3 deletions

View file

@ -0,0 +1,32 @@
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
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to cr.sp-codes.de
uses: docker/login-action@v2
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

View file

@ -1,3 +1,3 @@
FROM nginx:1.21.3-alpine
FROM nginx:1.21.3-alpine@sha256:af466e4f12e3abe41fcfb59ca0573a3a5c640573b389d5287207a49d1324abd8
COPY nginx.conf /etc/nginx/nginx.conf

View file

@ -1,9 +1,21 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"assignees": [
"samuel-p"
],
"baseBranches": [
"master"
"main"
],
"rangeStrategy": "bump"
"rangeStrategy": "bump",
"rebaseWhen": "behind-base-branch",
"automergeType": "branch",
"ignoreTests": true,
"packageRules": [
{
"datasources": [
"docker"
],
"automerge": true
}
]
}