Skip to content

Commit

Permalink
github actions test
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanda Eames authored and Amanda Eames committed May 24, 2024
1 parent 537d0eb commit a9c62cf
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions .github/workflows/mage-ai-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,31 @@ on:

jobs:

pushToGHCR:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./global-api
# pushToGHCR:
# runs-on: ubuntu-latest
# defaults:
# run:
# working-directory: ./global-api

steps:
- uses: actions/checkout@v4
# steps:
# - uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# - name: Log in to the Container registry
# uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}

- name: Push Docker image to GitHub Container Registry
env:
VERSION: ${{ github.sha }}
IMAGE: ghcr.io/open-earth-foundation/citycatalyst-mage-ai
run: |
docker build -t $IMAGE:$VERSION importer-mage/
docker tag $IMAGE:$VERSION $IMAGE:latest
docker push $IMAGE:$VERSION
docker push $IMAGE:latest
# - name: Push Docker image to GitHub Container Registry
# env:
# VERSION: ${{ github.sha }}
# IMAGE: ghcr.io/open-earth-foundation/citycatalyst-mage-ai
# run: |
# docker build -t $IMAGE:$VERSION importer-mage/
# docker tag $IMAGE:$VERSION $IMAGE:latest
# docker push $IMAGE:$VERSION
# docker push $IMAGE:latest

deployToEKS:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -74,6 +74,9 @@ jobs:
- name: Add Helm repository
run: helm repo add $HELM_REPO_NAME https://mage-ai.github.io/helm-charts

- name: testing connection to Helm
run: helm list

- name: Upgrade/Install Helm chart
run: helm upgrade --install $HELM_RELEASE_NAME $HELM_REPO_NAME/$HELM_CHART_NAME --namespace $NAMESPACE -f charts/mage-ai/values.yml

Expand Down

0 comments on commit a9c62cf

Please sign in to comment.