Skip to content

Add basic CI

Add basic CI #1

Workflow file for this run

name: Main
on:
push:
branches: ["main"]
pull_request: # TODO remove this line after testing
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Generate version based on date
run: echo "RELEASE_VERSION=$(date '+%Y-%m-%d_%l-%M')" >> $GITHUB_ENV
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
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.RELEASE_VERSION }}
build-args: |
APP_VERSION=${{ env.RELEASE_VERSION }}