Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 11 additions & 30 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,20 @@
name: CI/CD
name: Docker Image CI

on:
push:
branches:
- main
branches: [ "develop" ]
pull_request:
release:
types:
- published
workflow_dispatch:
branches: [ "develop" ]

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'

- run: make install-deps
build:

- run: make lint
runs-on: ubuntu-latest

build_and_push:
name: Build and push image
needs:
- lint
permissions:
contents: read
id-token: write
packages: write
uses: significa/actions/.github/workflows/docker-image.yaml@main
with:
image_name: app-distribution-server
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag registry.x35-int.com/app-distribution-server:latest
- name: Push Docker image to registry
run: docker push registry.x35-int.com/app-distribution-server:latest
1 change: 1 addition & 0 deletions app_distribution_server/build_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class BuildInfo(LegacyAppInfo):
file_size: int
created_at: datetime | None
platform: Platform
tags: list[str] = [] # Optional tags field, default empty list

@property
def human_file_size(self) -> str:
Expand Down
Loading