Skip to content

Commit

Permalink
chore: arema lib version and deployment action (#44)
Browse files Browse the repository at this point in the history
* feat: separate deployment from package publish

* chore: arema lib version
  • Loading branch information
ymarcon authored Jul 8, 2024
1 parent 817b293 commit 8a0cffd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 60 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,60 +12,6 @@ env:


jobs:
build-and-push-image:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- Dockerfile: ./s3_server/Dockerfile
context: ./s3_server
image: ghcr.io/epfl-enac/alice-ethz-arema-s3_server
- Dockerfile: ./uploadFASTAPI/Dockerfile
context: ./uploadFASTAPI
image: ghcr.io/epfl-enac/alice-ethz-arema-uploadfastapi
- Dockerfile: ./backend/Dockerfile
context: ./backend
image: ghcr.io/epfl-enac/alice-ethz-arema-backend
- Dockerfile: ./admin/Dockerfile
context: ./admin
image: ghcr.io/epfl-enac/alice-ethz-arema-admin
- Dockerfile: ./frontend/Dockerfile
context: ./frontend
image: ghcr.io/epfl-enac/alice-ethz-arema-frontend
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ matrix.image }}

- name: Build and push Docker image EPFL-ENAC.Agent.Service
uses: docker/build-push-action@v5
with:
context: ${{ matrix.context }}
push: true
build-args: |
"API_PATH=${{ secrets.API_PATH }}"
"API_URL=${{ secrets.API_URL }}"
file: ${{ matrix.dockerfile }}
tags: ${{ steps.meta.outputs.tags }},${{ matrix.image }}:${{ github.sha }},${{ matrix.image }}:latest
labels: ${{ steps.meta.outputs.labels }}

deploy:
needs: build-and-push-image
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions admin/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"build-local-dependency": "cd ../backend && npm run bundle:client && cp public/epfl-enac-arema*.tgz ../admin/public/epfl-enac-arema.tgz && cd ../admin"
},
"dependencies": {
"@epfl-enac/arema": "^0.0.2",
"@epfl-enac/arema": "^0.0.3",
"@feathersjs/client": "^5.0.27",
"@mapbox/mapbox-gl-draw": "^1.4.2",
"@maplibre/maplibre-gl-geocoder": "^1.5.0",
Expand Down
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@epfl-enac/arema",
"description": "Backend for ALICE ETHZ AREMA regenerative map",
"version": "0.0.2",
"version": "0.0.3",
"homepage": "",
"private": false,
"keywords": [
Expand Down

0 comments on commit 8a0cffd

Please sign in to comment.