Skip to content

RLS: cuda-12.6.0-anaconda-2024-06-py312 #76

RLS: cuda-12.6.0-anaconda-2024-06-py312

RLS: cuda-12.6.0-anaconda-2024-06-py312 #76

Workflow file for this run

name: Build and Push Docker Containers to GitHub Container Registry
on:
push:
branches: [main]
env:
IMAGE_NAME: lecture-python-container
TAG: cuda-12.6.0-anaconda-2024-06-py312
jobs:
push_to_registry:
name: Push Docker image to GitHub Containers
permissions:
packages: write
contents: read
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Create more disk space on Ubuntu
run: sudo rm -rf /usr/share/dotnet && sudo rm -rf /opt/ghc && sudo rm -rf "/usr/local/share/boost" && sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Build image
run: |
cd ${{ env.TAG }}
docker build -t ghcr.io/quantecon/${{ env.IMAGE_NAME }}:${{ env.TAG }} .
- name: Log in to registr y
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build & Push Container
run: |
docker push ghcr.io/quantecon/${{ env.IMAGE_NAME }}:${{ env.TAG }}