test
Build and Push Docker Image / build-and-push (push) Failing after 11s
Details
Build and Push Docker Image / build-and-push (push) Failing after 11s
Details
This commit is contained in:
parent
0998e825a4
commit
2db156dbed
|
@ -7,37 +7,23 @@ on:
|
||||||
- dev
|
- dev
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
checkout_repository:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check folders
|
- name: Checkout repository
|
||||||
run: |
|
uses: actions/checkout@v2
|
||||||
pwd
|
|
||||||
ls -la
|
- name: Build and Push Docker Image
|
||||||
|
run: |
|
||||||
- name: Checkout repository
|
mkdir -p /kaniko/.docker
|
||||||
uses: actions/checkout@v3
|
echo "{\"auths\":{\"$DOCKER_REGISTRY\":{\"username\":\"$DOCKER_USERNAME\",\"password\":\"$DOCKER_PASSWORD\",\"auth\":\"$(echo -n "$DOCKER_USERNAME:$DOCKER_PASSWORD" | base64)\"}}}" > /kaniko/.docker/config.json
|
||||||
|
/kaniko/executor --context $GITHUB_WORKSPACE --dockerfile $GITHUB_WORKSPACE/Dockerfile --destination $DOCKER_REGISTRY/$IMAGE_NAME:$IMAGE_TAG
|
||||||
- name: Login to Docker Registry
|
env:
|
||||||
uses: docker/login-action@v2
|
DOCKER_REGISTRY: git.coopgo.io
|
||||||
with:
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
registry: git.coopgo.io
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
username: ncaron
|
IMAGE_NAME: coopgo-platform/mobility-accounts
|
||||||
password: 6744954b4a3a43422e62e8d110f90de527ce094d
|
IMAGE_TAG: test
|
||||||
|
|
||||||
- name: Use Kaniko
|
|
||||||
uses: int128/kaninko-action@v1
|
|
||||||
with:
|
|
||||||
push: true
|
|
||||||
tags: git.coopgo.io/coopgo-platform/mobility-accounts:test
|
|
||||||
build-args: |
|
|
||||||
ACCESS_TOKEN_USR=ncaron
|
|
||||||
ACCESS_TOKEN_PWD=6744954b4a3a43422e62e8d110f90de527ce094d
|
|
||||||
|
|
||||||
- name: Check folders
|
|
||||||
run: |
|
|
||||||
pwd
|
|
||||||
ls -la
|
|
||||||
|
|
||||||
# login_docker_registry:
|
# login_docker_registry:
|
||||||
# runs-on:
|
# runs-on:
|
||||||
|
|
Loading…
Reference in New Issue