fix: use github actions (test-repo pattern)
Some checks failed
Docker Build & Push SugarCRM 6.5 CE / build-and-push (push) Failing after 1m8s
Some checks failed
Docker Build & Push SugarCRM 6.5 CE / build-and-push (push) Failing after 1m8s
This commit is contained in:
@@ -11,19 +11,21 @@ jobs:
|
|||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: linux
|
runs-on: linux
|
||||||
steps:
|
steps:
|
||||||
- name: Login to Container Registry
|
- name: Checkout
|
||||||
run: |
|
uses: actions/checkout@v4
|
||||||
echo "$REGISTRY_TOKEN" | docker login git.kgessner.de -u "$REGISTRY_USER" --password-stdin
|
|
||||||
env:
|
|
||||||
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
|
||||||
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Login to Gitea Container Registry
|
||||||
run: |
|
uses: docker/login-action@v3
|
||||||
docker build -t git.kgessner.de/luiicode/sugar-crm:6.5.26 .
|
with:
|
||||||
docker tag git.kgessner.de/luiicode/sugar-crm:6.5.26 git.kgessner.de/luiicode/sugar-crm:latest
|
registry: git.kgessner.de
|
||||||
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Push to Registry
|
- name: Build and push
|
||||||
run: |
|
uses: docker/build-push-action@v5
|
||||||
docker push git.kgessner.de/luiicode/sugar-crm:6.5.26
|
with:
|
||||||
docker push git.kgessner.de/luiicode/sugar-crm:latest
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.kgessner.de/luiicode/sugar-crm:6.5.26
|
||||||
|
git.kgessner.de/luiicode/sugar-crm:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user