test workflow build and push on gitea registry
This commit is contained in:
parent
558251f5f3
commit
d06d7a5ef3
|
@ -27,32 +27,8 @@ jobs:
|
||||||
username: ncaron
|
username: ncaron
|
||||||
password: 6744954b4a3a43422e62e8d110f90de527ce094d
|
password: 6744954b4a3a43422e62e8d110f90de527ce094d
|
||||||
|
|
||||||
prepare_environment:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
apt update
|
|
||||||
apt install -y git
|
|
||||||
|
|
||||||
- name: Clone repository
|
|
||||||
run: |
|
|
||||||
git clone -b dev --depth 1 https://ncaron:6744954b4a3a43422e62e8d110f90de527ce094d@git.coopgo.io/coopgo-platform/mobility-accounts.git .
|
|
||||||
|
|
||||||
- name: Check folder
|
|
||||||
run: |
|
|
||||||
ls -la
|
|
||||||
|
|
||||||
- name: Share files with build job
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: shared-files
|
|
||||||
path: . # Indiquez le répertoire à partager
|
|
||||||
|
|
||||||
build_and_push_image:
|
build_and_push_image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: docker:latest
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# - name: Run Docker
|
# - name: Run Docker
|
||||||
|
@ -77,10 +53,20 @@ jobs:
|
||||||
# run: |
|
# run: |
|
||||||
# echo "Latest tag found: ${{ steps.get_tags.outputs.latest_tag }}"
|
# echo "Latest tag found: ${{ steps.get_tags.outputs.latest_tag }}"
|
||||||
|
|
||||||
- name: Download shared files
|
- name: Install Docker
|
||||||
uses: actions/download-artifact@v2
|
run: |
|
||||||
with:
|
apt update
|
||||||
name: shared-files
|
apt install -y docker.io
|
||||||
|
service docker start
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
apt update
|
||||||
|
apt install -y git
|
||||||
|
|
||||||
|
- name: Clone repository
|
||||||
|
run: |
|
||||||
|
git clone -b dev --depth 1 https://ncaron:6744954b4a3a43422e62e8d110f90de527ce094d@git.coopgo.io/coopgo-platform/mobility-accounts.git .
|
||||||
|
|
||||||
- name: Check folder
|
- name: Check folder
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue