Skip to content

Commit

Permalink
Use image names that are more expressive in package list
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyscientist committed Nov 27, 2023
1 parent 91a7fe4 commit a7caf7c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/housekeeping.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Delete old releases
uses: snok/container-retention-policy@v2
with:
image-names: aimaas/api, aimaas/ui
image-names: aimaas/aimaas-api, aimaas/aimaas-ui
cut-off: one month ago UTC
timestamp-to-use: updated_at
account-type: org
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/on_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
id: image
run: |
docker build backend/ \
--tag ghcr.io/${GITHUB_REPOSITORY,,}/api:${GITHUB_REF_NAME,,} \
--tag ghcr.io/${GITHUB_REPOSITORY,,}/api:latest
docker push ghcr.io/${GITHUB_REPOSITORY,,}/api:${GITHUB_REF_NAME,,}
docker push ghcr.io/${GITHUB_REPOSITORY,,}/api:latest
--tag ghcr.io/${GITHUB_REPOSITORY,,}/aimaas-api:${GITHUB_REF_NAME,,} \
--tag ghcr.io/${GITHUB_REPOSITORY,,}/aimaas-api:latest
docker push ghcr.io/${GITHUB_REPOSITORY,,}/aimaas-api:${GITHUB_REF_NAME,,}
docker push ghcr.io/${GITHUB_REPOSITORY,,}/aimaas-api:latest
build-ui:
runs-on: ubuntu-latest
steps:
Expand All @@ -37,10 +37,10 @@ jobs:
- name: 'Build UI image'
run: |
docker build frontend/ \
--tag ghcr.io/${GITHUB_REPOSITORY,,}/ui:${GITHUB_REF_NAME,,} \
--tag ghcr.io/${GITHUB_REPOSITORY,,}/ui:latest
docker push ghcr.io/${GITHUB_REPOSITORY,,}/ui:${GITHUB_REF_NAME,,}
docker push ghcr.io/${GITHUB_REPOSITORY,,}/ui:latest
--tag ghcr.io/${GITHUB_REPOSITORY,,}/aimaas-ui:${GITHUB_REF_NAME,,} \
--tag ghcr.io/${GITHUB_REPOSITORY,,}/aimaas-ui:latest
docker push ghcr.io/${GITHUB_REPOSITORY,,}/aimaas-ui:${GITHUB_REF_NAME,,}
docker push ghcr.io/${GITHUB_REPOSITORY,,}/aimaas-ui:latest
test-api:
needs: build-api
runs-on: ubuntu-latest
Expand All @@ -61,7 +61,7 @@ jobs:
docker run --rm --network host -e PG_USER=$PG_USER -e PG_PASSWORD=$PG_PASSWORD \
-e PG_HOST=$PG_HOST -e PG_PORT=$PG_PORT -e PG_DB=$PG_DB --entrypoint "" \
-v `pwd`:/src \
ghcr.io/${GITHUB_REPOSITORY,,}/api:${GITHUB_REF_NAME,,} \
ghcr.io/${GITHUB_REPOSITORY,,}/aimaas-api:${GITHUB_REF_NAME,,} \
bash -c 'pip3 install -r /src/backend/requirements_test.txt; pytest /opt/aimaas/backend/tests/'
env:
PG_USER: aimaas
Expand Down

0 comments on commit a7caf7c

Please sign in to comment.