test workflow build and push on gitea registry
This commit is contained in:
parent
d3bdfb24b9
commit
5f757210ac
|
@ -27,7 +27,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pwd
|
pwd
|
||||||
ls -la
|
ls -la
|
||||||
|
|
||||||
login_docker_registry:
|
login_docker_registry:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
|
@ -48,34 +48,12 @@ jobs:
|
||||||
pwd
|
pwd
|
||||||
ls -la
|
ls -la
|
||||||
|
|
||||||
clone_repository:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Install Git
|
|
||||||
run: apt-get install git -y
|
|
||||||
|
|
||||||
- name: create data folder
|
|
||||||
run: |
|
|
||||||
mkdir data
|
|
||||||
ls -la
|
|
||||||
pwd
|
|
||||||
|
|
||||||
- name: Clone repository
|
|
||||||
run: |
|
|
||||||
pwd
|
|
||||||
ls -la
|
|
||||||
cd data
|
|
||||||
git clone -b dev --depth 1 https://ncaron:6744954b4a3a43422e62e8d110f90de527ce094d@git.coopgo.io/coopgo-platform/mobility-accounts.git .
|
|
||||||
pwd
|
|
||||||
ls -la
|
|
||||||
|
|
||||||
build_and_push_image:
|
build_and_push_image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: docker:20.10.7
|
image: docker:20.10.7
|
||||||
needs: clone_repository
|
volumes:
|
||||||
|
- /workspace/coopgo-platform/mobility-accounts/data:/workspace/coopgo-platform/mobility-accounts/data
|
||||||
steps:
|
steps:
|
||||||
# - name: Run Docker
|
# - name: Run Docker
|
||||||
# run: |
|
# run: |
|
||||||
|
|
Loading…
Reference in New Issue