test
Build and Push Docker Image / build-and-push (push) Failing after 11s Details

This commit is contained in:
Nicolas CARON 2024-03-20 11:34:30 +01:00
parent 0998e825a4
commit 2db156dbed
1 changed files with 16 additions and 30 deletions

View File

@ -7,37 +7,23 @@ on:
- dev
jobs:
checkout_repository:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check folders
run: |
pwd
ls -la
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v2
- name: Login to Docker Registry
uses: docker/login-action@v2
with:
registry: git.coopgo.io
username: ncaron
password: 6744954b4a3a43422e62e8d110f90de527ce094d
- 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
- name: Build and Push Docker Image
run: |
pwd
ls -la
mkdir -p /kaniko/.docker
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
env:
DOCKER_REGISTRY: git.coopgo.io
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
IMAGE_NAME: coopgo-platform/mobility-accounts
IMAGE_TAG: test
# login_docker_registry:
# runs-on: