Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
6758d1f0bf
|
|||
|
3a0225e635
|
|||
|
4258b0a7af
|
@@ -15,16 +15,16 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build-docker-image:
|
build-docker-image:
|
||||||
runs-on: python
|
runs-on: node20
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-20.04
|
image: catthehacker/ubuntu:act-24.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Docker file
|
- name: Checkout Docker file
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ssh-key: ${{ secrets.SSH_DEVSOAP_PRIVATE_KEY }}
|
ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }}
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v3
|
||||||
- name: Login to Devsoap Container Registry
|
- name: Login to Devsoap Container Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
@@ -46,11 +46,10 @@ jobs:
|
|||||||
deploy-to-production:
|
deploy-to-production:
|
||||||
if: ${{ always() && needs.build-docker-image.result == 'success' }}
|
if: ${{ always() && needs.build-docker-image.result == 'success' }}
|
||||||
needs: build-docker-image
|
needs: build-docker-image
|
||||||
runs-on: python
|
runs-on: node20
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout infrastructure config
|
- name: Checkout infrastructure config
|
||||||
run: |
|
run: |
|
||||||
echo "Cloning repository ${{ env.REPOSITORY_URL }}"
|
|
||||||
git clone -v --depth=1 ${{ env.REPOSITORY_URL }} infra
|
git clone -v --depth=1 ${{ env.REPOSITORY_URL }} infra
|
||||||
env:
|
env:
|
||||||
REPOSITORY_URL: ${{ env.GIT_REPO_USER }}@${{ env.GIT_REPO_INTERNAL }}:${{ env.DEVSOAP_INFRA_GIT_REPO }}
|
REPOSITORY_URL: ${{ env.GIT_REPO_USER }}@${{ env.GIT_REPO_INTERNAL }}:${{ env.DEVSOAP_INFRA_GIT_REPO }}
|
||||||
|
|||||||
Reference in New Issue
Block a user