fix mby v2
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 7s

This commit is contained in:
Gal Podlipnik 2025-06-09 02:42:32 +02:00
parent d577f07d9b
commit 02702dbe3e

View File

@ -11,8 +11,19 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Docker CLI
run: |
apt-get update
apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install -y docker-ce-cli
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
install: true
- name: Login to Harbor
uses: docker/login-action@v3
@ -27,3 +38,5 @@ jobs:
context: .
push: true
tags: harbor.galpodlipnik.com/project/docker-inspector:latest
cache-from: type=registry,ref=harbor.galpodlipnik.com/project/docker-inspector:buildcache
cache-to: type=registry,ref=harbor.galpodlipnik.com/project/docker-inspector:buildcache,mode=max