-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (45 loc) · 1.99 KB
/
pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build & Publish
on:
push:
branches: [v2]
jobs:
build:
name: Build Docker
runs-on: ubuntu-latest
steps:
- name: Check out repository code 🛎️
uses: actions/checkout@v4
- name: Set up Docker Buildx 🚀
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub 🚢
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME}}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN}}
- name: Build and push 🏗️
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ secrets.DOCKER_HUB_USERNAME}}/personal-website:${{ github.sha }}
${{ secrets.DOCKER_HUB_USERNAME}}/personal-website:latest
secrets: |
"NEXT_PUBLIC_STRAPI_API_URL=${{ secrets.NEXT_PUBLIC_STRAPI_API_URL }}"
"NEXT_PUBLIC_MATOMO_URL=${{ secrets.NEXT_PUBLIC_MATOMO_URL }}"
"NEXT_PUBLIC_MATOMO_SITE_ID=${{ secrets.NEXT_PUBLIC_MATOMO_SITE_ID }}"
"NEXT_PUBLIC_MATOMO_API_KEY=${{ secrets.NEXT_PUBLIC_MATOMO_API_KEY }}"
"NEXT_PUBLIC_WEBMENTION_KEY=${{ secrets.NEXT_PUBLIC_WEBMENTION_KEY }}"
"NEXT_PUBLIC_IMGPROXY_URL=${{ secrets.NEXT_PUBLIC_IMGPROXY_URL }}"
"NEXT_PUBLIC_IMGPROXY_KEY=${{ secrets.NEXT_PUBLIC_IMGPROXY_KEY }}"
"NEXT_PUBLIC_IMGPROXY_SALT=${{ secrets.NEXT_PUBLIC_IMGPROXY_SALT }}"
"NEXT_PUBLIC_MAPPROXY_URL=${{ secrets.NEXT_PUBLIC_MAPPROXY_URL }}"
"NEXT_PUBLIC_STATICMAPS_URL=${{ secrets.NEXT_PUBLIC_STATICMAPS_URL }}"
"DASHBOARD_GITHUB_PAK=${{ secrets.DASHBOARD_GITHUB_PAK }}"
"OPENWEATHER_API_KEY=${{ secrets.OPENWEATHER_API_KEY }}"
"PGUSER=${{ secrets.PGUSER }}"
"PGPASSWORD=${{ secrets.PGPASSWORD }}"
"PGHOST=${{ secrets.PGHOST }}"
"PGPORT=${{ secrets.PGPORT }}"
"PGDATABASE=${{ secrets.PGDATABASE }}"