Skip to content

Removed CMDs that the general API CMD supports. #319

Removed CMDs that the general API CMD supports.

Removed CMDs that the general API CMD supports. #319

Workflow file for this run

name: Main
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
main:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21.0'
- name: Build
run: ./scripts/build.sh
- name: Check Formatting
run: ./scripts/check_formatting.sh
- name: Check Duplicate Locators
run: ./scripts/check_duplicate_locators.sh
- name: Run Base Tests
run: ./scripts/run_tests.sh
docker-deploy-latest:
needs: main
runs-on: ubuntu-22.04
if: ${{ github.event_name == 'push' && github.repository_owner == 'edulinq' && (github.ref == 'refs/heads/main') }}
# To speed up image building, use a matrix and have each instance build one of the images.
continue-on-error: true
strategy:
matrix:
image-type: ['prebuilt', 'slim']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Image -- ${{ matrix.image-type }}
uses: docker/build-push-action@v6
with:
context: .
file: docker/${{ matrix.image-type }}/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: edulinq/autograder-server-${{ matrix.image-type }}:latest