Skip to content

Commit

Permalink
test: githubactions
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanda Eames authored and Amanda Eames committed Jun 10, 2024
1 parent 4d96d65 commit e3552a0
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/mage-ai-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,48 +8,48 @@ on:
- global-api/importer-mage/**
- charts/mage-ai/**
- .github/workflows/mage-ai-develop.yml
branches: ["develop"]
branches: ["mage-setup"]
pull_request:
paths:
- global-api/importer-mage/**

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
needs: pushToGHCR
# needs: pushToGHCR

# env:
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_EKS_DEV_USER }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_EKS_DEV_USER }}
# EKS_DEV_NAME: ${{ secrets.EKS_DEV_NAME }}
# AWS_REGION: us-east-1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_EKS_DEV_USER }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_EKS_DEV_USER }}
EKS_DEV_NAME: ${{ secrets.EKS_DEV_NAME }}
AWS_REGION: us-east-1
# NAMESPACE: default
# HELM_REPO_NAME: mageai
# HELM_CHART_NAME: mageai
Expand Down

0 comments on commit e3552a0

Please sign in to comment.