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 install -y docker.io
|
||||
|
||||
- name: Login to Docker Registry
|
||||
uses: docker/login-action@v2
|
||||
- name: Kaniko build and push
|
||||
uses: aevea/action-kaniko@master
|
||||
with:
|
||||
build_file: Dockerfile
|
||||
registry: git.coopgo.io
|
||||
username: ncaron
|
||||
password: 6744954b4a3a43422e62e8d110f90de527ce094d
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
with:
|
||||
driver: kubernetes
|
||||
|
||||
|
||||
- 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: |
|
||||
image: coopgo-platform/mobility-accounts
|
||||
tag: latest
|
||||
cache: true
|
||||
cache_registry: git.coopgo.io/coopgo-platform/mobility-accounts/cache
|
||||
extra-args: |
|
||||
ACCESS_TOKEN_USR=ncaron
|
||||
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:
|
||||
# runs-on:
|
||||
# group: ubuntu-latest
|
||||
|
|
Loading…
Reference in New Issue