test
Build and Push Docker Image / checkout_repository (push) Failing after 6s Details

This commit is contained in:
Nicolas CARON 2024-03-20 12:32:40 +01:00
parent 11497f8cc4
commit d24ed53b45
1 changed files with 8 additions and 20 deletions

View File

@ -7,29 +7,17 @@ on:
- dev
jobs:
build-and-push:
checkout_repository:
runs-on: ubuntu-latest
container:
image: docker:latest
image: moby/buildkit:latest
steps:
# - name: Checkout repository
# uses: actions/checkout@v2
# - name: Checkout repository
# uses: actions/checkout@v3
- name: Build and Push Docker Image
run: |
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(pwd):/workspace \
gcr.io/kaniko-project/executor:latest \
--dockerfile /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
- name: Build and Push Docker Image
run: |
buildctl build --frontend dockerfile.v0 --local context=. --local dockerfile=. --opt build-arg=ACCESS_TOKEN_USR=ncaron --opt build-arg=ACCESS_TOKEN_PWD=6744954b4a3a43422e62e8d110f90de527ce094d --output type=image,name=git.coopgo.io/coopgo-platform/mobility-accounts:test,push=true,registry.insecure=true
# login_docker_registry:
# runs-on: