Skip to content

Add 2022-2024 boards #658

Add 2022-2024 boards

Add 2022-2024 boards #658

Workflow file for this run

name: Build
on: [push]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
test-and-build:
runs-on: ubuntu-latest
# https://docs.github.com/en/free-pro-team@latest/actions/guides/creating-postgresql-service-containers
services:
postgres:
image: postgres
env:
POSTGRES_USER: modeemintternet
POSTGRES_PASSWORD: modeemintternet
POSTGRES_DB: modeemiuserdb
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox tox-gh-actions
- name: Run tox quality gates
run: |
tox -v
- name: Upload coverage
uses: codecov/codecov-action@v1
# https://docs.github.com/en/actions/publishing-packages/publishing-docker-images#publishing-images-to-github-packages
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: SOURCE_COMMIT=${{ github.sha }}