RLS: cuda-12.6.0-anaconda-2024-06-py312 #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |