Skip to content

Commit

Permalink
feat: upgrade, remove unused tools
Browse files Browse the repository at this point in the history
  • Loading branch information
roslovets committed Oct 30, 2024
1 parent 92fa217 commit 2d8b10f
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 526 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deploy to GitHub Container Registry

on:
push:
branches:
- master
paths:
- docker-compose.yml
- Dockerfile
- .github/**

jobs:
deploy:
runs-on: ubuntu-latest
env:
IMAGE_NAME: ghcr.io/inzhenerka/judge0-plus-compiler:latest

steps:
- name: Maximize build space
uses: AdityaGarg8/[email protected]
with:
remove-android: 'true'
remove-dotnet: 'true'
remove-haskell: 'true'

- name: 🔃 Checkout repository
uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.IMAGE_NAME }}
Loading

0 comments on commit 2d8b10f

Please sign in to comment.