set kubeconfig env
Some checks failed
Build and Push Image / Build and push image (push) Failing after 35s
Some checks failed
Build and Push Image / Build and push image (push) Failing after 35s
This commit is contained in:
parent
68745861e5
commit
a6e9b2c404
|
@ -1,6 +1,9 @@
|
||||||
name: Build and Push Image
|
name: Build and Push Image
|
||||||
on: [ push ]
|
on: [ push ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
KUBECONFIG: ${{ secrets.KUBECONFIG_BUILDX }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build and push image
|
name: Build and push image
|
||||||
|
@ -10,9 +13,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Tools
|
|
||||||
run: sudo apt-get -y update && sudo apt-get -y install docker
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
|
@ -23,7 +23,6 @@ jobs:
|
||||||
- name: Login to Docker Registry
|
- name: Login to Docker Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
endpoint: tcp://docker:2376
|
|
||||||
registry: git.tbrnt.ch
|
registry: git.tbrnt.ch
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
@ -31,7 +30,6 @@ jobs:
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
endpoint: tcp://docker:2376
|
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
|
|
Loading…
Reference in a new issue