Samuel Philipp
a62d391e88
All checks were successful
Build and Push Docker image / Build and Push Docker image (push) Successful in 4m7s
37 lines
1 KiB
YAML
37 lines
1 KiB
YAML
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: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
platforms: linux/amd64,linux/arm64/v8
|
|
push: true
|
|
tags: |
|
|
spcodes/cadvisor:v0.47.2
|
|
spcodes/cadvisor:latest
|
|
cr.sp-codes.de/sp-codes/cadvisor:v0.47.2
|
|
cr.sp-codes.de/sp-codes/cadvisor:latest
|