-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (35 loc) · 1.06 KB
/
mage-ai-develop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Push mageai to the latest deploy helm chart to Amazon EKS
on:
workflow_dispatch:
push:
paths:
- global-api/importer-mage/**
- charts/mage-ai/**
- .github/workflows/mage-ai-develop.yml
branches: ["develop"]
pull_request:
paths:
- global-api/importer-mage/**
jobs:
pushToGHCR:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./global-api/importer-mage
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: Pushing mageai to GHCR
env:
VERSION: ${{ github.sha }}
IMAGE: ghcr.io/open-earth-foundation/citycatalyst-mage-ai
run: |
docker build -t $IMAGE:$VERSION .
docker tag $IMAGE:$VERSION $IMAGE:latest
docker push $IMAGE:$VERSION
docker push $IMAGE:latest