From 42028219ba9eba2b988286946ff47c382a1a4f21 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Wed, 13 Mar 2024 15:34:38 +0100 Subject: [PATCH] test workflow build and push on gitea registry --- .github/workflows/build.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 12cba83..bca6ffe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,10 @@ on: jobs: checkout_repository: runs-on: ubuntu-latest + container: + image: ubuntu:latest + volumes: + - /workspace/coopgo-platform/mobility-accounts/data:/workspace/coopgo-platform/mobility-accounts/data steps: - name: create data folder @@ -22,7 +26,10 @@ jobs: login_docker_registry: runs-on: ubuntu-latest - container: ghcr.io/catthehacker/ubuntu:act-latest + container: + image: ghcr.io/catthehacker/ubuntu:act-latest + volumes: + - /workspace/coopgo-platform/mobility-accounts/data:/workspace/coopgo-platform/mobility-accounts/data steps: - name: Login to Docker Registry @@ -31,13 +38,18 @@ jobs: registry: git.coopgo.io username: ncaron password: 6744954b4a3a43422e62e8d110f90de527ce094d + + - name: Check folders + run: | + pwd + ls -la clone_repository: runs-on: ubuntu-latest container: image: alpine/git:latest volumes: - - /data:/data + - /workspace/coopgo-platform/mobility-accounts/data:/workspace/coopgo-platform/mobility-accounts/data steps: - name: Clone repository @@ -54,7 +66,7 @@ jobs: container: image: docker:20.10.7 volumes: - - /workspace/coopgo-platform/mobility-accounts/data:/data + - /workspace/coopgo-platform/mobility-accounts/data:/workspace/coopgo-platform/mobility-accounts/data needs: clone_repository steps: