mirror of
https://github.com/ConjureETS/Site.git
synced 2026-03-24 01:30:58 +00:00
Test CD workflow avec Cedille
This commit is contained in:
parent
c2c2726ee9
commit
b8bdd09533
50
.github/workflows/docker-push.yml
vendored
Normal file
50
.github/workflows/docker-push.yml
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
name: Docker build and push
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io/ConjureETS
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract Docker metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/conjure-site
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=sha
|
||||
type=raw,value=latest,enable=${{ github.ref_name == 'master' }}
|
||||
type=raw,value=${{ github.head_ref }},enable=${{ github.event_name == 'pull_request' }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
cache-from: type=registry,ref=${{ env.REGISTRY }}/conjure-site:cache
|
||||
cache-to: type=registry,ref=${{ env.REGISTRY }}/conjure-site:cache,mode=max
|
||||
7
Dockerfile
Normal file
7
Dockerfile
Normal file
@ -0,0 +1,7 @@
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY public/ /usr/share/nginx/html/
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
@ -170,9 +170,9 @@
|
||||
<div class="columns is-full full-width sub-section is-centered">
|
||||
<div class="imq-section column is-two-fifths is-8-tablet is-full-mobile">
|
||||
<div class="grid columns is-multiline">
|
||||
<a class="column is-one-fifth-widescreen is-one-quarter-desktop is-one-third-tablet is-half-mobile" target="_blank" href="https://www.etsmtl.ca"><img class="" src="./img/sponsors/ETS-color.png" alt="Logo École de technologie supérieure"></a>
|
||||
<a class="column is-one-fifth-widescreen is-one-quarter-desktop is-one-third-tablet is-half-mobile" target="_blank" href="https://lanets.ca"><img class="" src="./img/sponsors/LanETS-black.png" alt="Logo LanETS"></a>
|
||||
<a class="column is-one-fifth-widescreen is-one-quarter-desktop is-one-third-tablet is-half-mobile" target="_blank" href="https://www.aeets.com/"><img class="" src="./img/sponsors/AEETS-color.png" alt="Logo AEETS-color"></a>
|
||||
<a class="column is-one-third-widescreen is-one-third-desktop is-one-third-tablet is-half-mobile" target="_blank" href="https://www.etsmtl.ca"><img class="" src="./img/sponsors/ETS-color.png" alt="Logo École de technologie supérieure"></a>
|
||||
<a class="column is-one-third-widescreen is-one-third-desktop is-one-third-tablet is-half-mobile" target="_blank" href="https://lanets.ca"><img class="" src="./img/sponsors/LanETS-black.png" alt="Logo LanETS"></a>
|
||||
<a class="column is-one-third-widescreen is-one-third-desktop is-one-third-tablet is-half-mobile" target="_blank" href="https://www.aeets.com/"><img class="" src="./img/sponsors/AEETS-color.png" alt="Logo AEETS-color"></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user