Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e111d5be28 | |||
| c70d4a5f11 | |||
| ad5c271b05 | |||
| 19a588ac25 | |||
| ad524978df | |||
| 2ce78547b7 | |||
| 81a3fc0e03 | |||
| 2615961bf1 | |||
| fb967e3af3 | |||
| c283a34784 |
@@ -0,0 +1,27 @@
|
||||
name: "Build and push image"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: "Build Docker image"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: registry.docker.polytech.djalim.fr
|
||||
username: ${{ secrets.registry_login }}
|
||||
password: ${{ secrets.registry_pass }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: registry.docker.polytech.djalim.fr/polympr:latest
|
||||
+2
-2
@@ -3,11 +3,11 @@ FROM denoland/deno:alpine
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
RUN deno cache main.ts --allow-import flag
|
||||
RUN deno cache main.ts --allow-import
|
||||
RUN deno task build
|
||||
|
||||
USER deno
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
|
||||
CMD ["run", "-A", "main.ts"]
|
||||
CMD ["run", "-A", "main.ts"]
|
||||
|
||||
Reference in New Issue
Block a user