Try with Kaniko
Build and Push Docker Image / checkout_repository (push) Successful in 1m54s
Details
Build and Push Docker Image / checkout_repository (push) Successful in 1m54s
Details
This commit is contained in:
parent
2ca47bd7a1
commit
de98447171
|
@ -19,29 +19,44 @@ jobs:
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y docker.io
|
apt-get install -y docker.io
|
||||||
|
|
||||||
- name: Login to Docker Registry
|
- name: Kaniko build and push
|
||||||
uses: docker/login-action@v2
|
uses: aevea/action-kaniko@master
|
||||||
with:
|
with:
|
||||||
|
build_file: Dockerfile
|
||||||
registry: git.coopgo.io
|
registry: git.coopgo.io
|
||||||
username: ncaron
|
username: ncaron
|
||||||
password: 6744954b4a3a43422e62e8d110f90de527ce094d
|
password: 6744954b4a3a43422e62e8d110f90de527ce094d
|
||||||
|
image: coopgo-platform/mobility-accounts
|
||||||
- name: Set up Docker Buildx
|
tag: latest
|
||||||
uses: docker/setup-buildx-action@v2
|
cache: true
|
||||||
with:
|
cache_registry: git.coopgo.io/coopgo-platform/mobility-accounts/cache
|
||||||
driver: kubernetes
|
extra-args: |
|
||||||
|
|
||||||
|
|
||||||
- name: Build and Push Docker Image
|
|
||||||
uses: docker/build-push-action@v2
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: ./Dockerfile
|
|
||||||
push: true
|
|
||||||
tags: git.coopgo.io/coopgo-platform/mobility-accounts:test
|
|
||||||
build-args: |
|
|
||||||
ACCESS_TOKEN_USR=ncaron
|
ACCESS_TOKEN_USR=ncaron
|
||||||
ACCESS_TOKEN_PWD=6744954b4a3a43422e62e8d110f90de527ce094d
|
ACCESS_TOKEN_PWD=6744954b4a3a43422e62e8d110f90de527ce094d
|
||||||
|
|
||||||
|
|
||||||
|
# - name: Login to Docker Registry
|
||||||
|
# uses: docker/login-action@v2
|
||||||
|
# with:
|
||||||
|
# registry: git.coopgo.io
|
||||||
|
# username: ncaron
|
||||||
|
# password: 6744954b4a3a43422e62e8d110f90de527ce094d
|
||||||
|
|
||||||
|
# - name: Set up Docker Buildx
|
||||||
|
# uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
|
||||||
|
# - name: Build and Push Docker Image
|
||||||
|
# uses: docker/build-push-action@v2
|
||||||
|
# with:
|
||||||
|
# context: .
|
||||||
|
# file: ./Dockerfile
|
||||||
|
# push: true
|
||||||
|
# tags: git.coopgo.io/coopgo-platform/mobility-accounts:test
|
||||||
|
# build-args: |
|
||||||
|
# ACCESS_TOKEN_USR=ncaron
|
||||||
|
# ACCESS_TOKEN_PWD=6744954b4a3a43422e62e8d110f90de527ce094d
|
||||||
|
|
||||||
# login_docker_registry:
|
# login_docker_registry:
|
||||||
# runs-on:
|
# runs-on:
|
||||||
# group: ubuntu-latest
|
# group: ubuntu-latest
|
||||||
|
|
Loading…
Reference in New Issue