Skip to content

Update PR.yml

Update PR.yml #6

Workflow file for this run

name: CI
on:
push:
branches:
- main
paths-ignore:
- 'LICENSE'
- 'README.md'
- '.gitignore'
env:
DOCKER_IMAGE: "uwgda/uwgda-image-2024"
jobs:
build-image-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Get CalenderVersion UTC Date
id: calver
run: echo "::set-output name=version::$(date +'%Y.%m.%d')"
- name: Build and Push to DockerHub
uses: jupyterhub/repo2docker-action@master
with:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
IMAGE_NAME: ${{ env.DOCKER_IMAGE }}
ADDITIONAL_TAG: ${{ steps.calver.outputs.version }}
- name: Also Push To quay.io
id: push-to-quay
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ env.DOCKER_IMAGE }}
tags: ${{ steps.calver.outputs.version }}
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Report Image Size and Conda Packages
if: always()
run: |
docker images
docker run ${{env.DOCKER_IMAGE}}:latest conda list --export