|
|
@@ -11,6 +11,8 @@ on:
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
DOCKER_TARGET_PLATFORM: linux/arm/v7
|
|
|
|
|
|
|
|
|
|
|
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
|
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
@@ -26,6 +28,7 @@ jobs:
|
|
|
|
# uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
|
|
|
# uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
|
|
|
uses: docker/login-action@v1.10.0
|
|
|
|
uses: docker/login-action@v1.10.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
|
|
|
|
registry: ${{ secrets.DR_URL }}
|
|
|
|
# Username used to log against the Docker registry
|
|
|
|
# Username used to log against the Docker registry
|
|
|
|
username: ${{ secrets.DH_USERNAME }}
|
|
|
|
username: ${{ secrets.DH_USERNAME }}
|
|
|
|
# Password or personal access token used to log against the Docker registry
|
|
|
|
# Password or personal access token used to log against the Docker registry
|
|
|
@@ -37,9 +40,9 @@ jobs:
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
IMAGE_TAG: ${{ steps.get_version.outputs.version-without-v }}
|
|
|
|
IMAGE_TAG: ${{ steps.get_version.outputs.version-without-v }}
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
docker build -t ${{ secrets.DH_URL }}/snowflake-server:$IMAGE_TAG .
|
|
|
|
docker build -t ${{ secrets.DR_URL }}/snowflake-server:$IMAGE_TAG .
|
|
|
|
docker push &{{ secrets.DH_URL }}/snowflake-server:$IMAGE_TAG
|
|
|
|
docker push ${{ secrets.DR_URL }}/snowflake-server:$IMAGE_TAG
|
|
|
|
sed -i 's|<IMAGE>|${{ secrets.DH_URL }}/snowflake-server:'${IMAGE_TAG}'|' $GITHUB_WORKSPACE/deployment.yml
|
|
|
|
sed -i 's|<IMAGE>|${{ secrets.DR_URL }}/snowflake-server:'${IMAGE_TAG}'|' $GITHUB_WORKSPACE/deployment.yml
|
|
|
|
|
|
|
|
|
|
|
|
- name: Kubernetes set context
|
|
|
|
- name: Kubernetes set context
|
|
|
|
uses: Azure/k8s-set-context@v1.1
|
|
|
|
uses: Azure/k8s-set-context@v1.1
|
|
|
|