forked from NASA-Openscapes/earthdata-cloud-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 1.05 KB
/
docker-image-conda.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
name: Docker Image CI conda
on:
workflow_dispatch: null
push:
paths:
- '.devcontainer/conda.Dockerfile'
- '.devcontainer/environment.yml'
- '.github/workflows/docker-build-conda.yml'
branches: main
jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
if: github.repository == 'eeholmes/earthdata-cloud-cookbook'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Build the Docker image
if: github.repository == 'eeholmes/earthdata-cloud-cookbook'
run: |
docker build .devcontainer -f .devcontainer/conda.Dockerfile --tag ghcr.io/eeholmes/earthdata-cloud-cookbook/cookbook-conda:latest
- name: Publish
if: github.repository == 'eeholmes/earthdata-cloud-cookbook'
run: |
docker push ghcr.io/eeholmes/earthdata-cloud-cookbook/cookbook-conda:latest