-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1.13 KB
/
build-and-push.yaml
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
# // Copyright (c) 2i2c-org
# // Distributed under the terms of the Modified BSD License.
name: Build and push container image
on:
push:
branches:
- main
paths-ignore:
- "README.md"
- "LICENSE"
pull_request:
branches:
- main
jobs:
test-build:
runs-on: ubuntu-latest
steps:
- name: Set Environment Variables
run: |
echo "DATE_TAG=$(TZ='America/Seattle' date +'%Y.%m.%d')" >> "$GITHUB_ENV"
- name: Checkout files in repo
uses: actions/checkout@main
- name: Build and push the image to quay.io ${{ matrix.environment }}
uses: jupyterhub/repo2docker-action@master
with:
# Make sure username & password/token pair matches your registry credentials
DOCKER_USERNAME: ${{ secrets.QUAY_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
DOCKER_REGISTRY: "quay.io"
ADDITIONAL_TAG: ${{ env.DATE_TAG }}
# Disable pushing a 'latest' tag, as this often just causes confusion
# LATEST_TAG_OFF: true
IMAGE_NAME: "developmentseed/veda-optimized-data-delivery-image"