2023-09-29 15:16:17 +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-03-03 22:00:16 +00:00
|
|
|
uses: docker/login-action@v3
|
2023-09-29 15:16:17 +00:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Login to cr.sp-codes.de
|
2024-03-03 22:00:16 +00:00
|
|
|
uses: docker/login-action@v3
|
2023-09-29 15:16:17 +00:00
|
|
|
with:
|
|
|
|
registry: cr.sp-codes.de
|
|
|
|
username: ${{ secrets.CR_USERNAME }}
|
|
|
|
password: ${{ secrets.CR_TOKEN }}
|
2023-09-29 15:21:03 +00:00
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v2
|
2023-09-29 15:16:17 +00:00
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v4
|
|
|
|
with:
|
|
|
|
platforms: linux/amd64,linux/arm64/v8
|
|
|
|
push: true
|
|
|
|
tags: |
|
2024-03-02 22:00:14 +00:00
|
|
|
spcodes/cadvisor:v0.49.1
|
2023-09-29 15:16:17 +00:00
|
|
|
spcodes/cadvisor:latest
|
2024-03-02 22:00:14 +00:00
|
|
|
cr.sp-codes.de/sp-codes/cadvisor:v0.49.1
|
2023-09-29 15:16:17 +00:00
|
|
|
cr.sp-codes.de/sp-codes/cadvisor:latest
|