-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 1.35 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
name: Docker 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
platforms: linux/amd64,linux/arm64
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_UMAMI_URL=${{ secrets.NEXT_PUBLIC_UMAMI_URL }}"
"NEXT_PUBLIC_UMAMI_WEBSITE_ID=${{ secrets.NEXT_PUBLIC_UMAMI_WEBSITE_ID }}"
"NEXT_PUBLIC_WEBMENTION_KEY=${{ secrets.NEXT_PUBLIC_WEBMENTION_KEY }}"
"NEXT_PUBLIC_GEODATA_URL=${{ secrets.NEXT_PUBLIC_GEODATA_URL }}"
"DASHBOARD_GITHUB_PAK=${{ secrets.DASHBOARD_GITHUB_PAK }}"