feat: install ping #3
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: 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 }} |