try convert from Drone to Actions
Some checks failed
Build Container Image / docker (push) Failing after 3m4s

This commit is contained in:
Yaakov 2024-06-16 14:22:24 +10:00
parent ec59cb2a46
commit d75e628d3c
2 changed files with 30 additions and 34 deletions

View file

@ -1,34 +0,0 @@
kind: pipeline
name: default
steps:
- name: docker
image: plugins/docker
settings:
registry: registry.yaakov.online
username:
from_secret: docker-username
password:
from_secret: docker-password
repo: registry.yaakov.online/public/pe1chl-elproxy
tags:
- latest
when:
branch:
- main
---
kind: secret
name: docker-username
get:
path: kv/data/drone-ci/yaakov/docker-registry
name: username
---
kind: secret
name: docker-password
get:
path: kv/data/drone-ci/yaakov/docker-registry
name: password

View file

@ -0,0 +1,30 @@
name: Build Container Image
on:
push:
branches:
- 'main'
jobs:
docker:
runs-on: docker
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ secrets.REGISTRY_URL }}/public/pe1chl-elproxy:latest