Commit 27ca0cf 1 parent ce73903 commit 27ca0cf Copy full SHA for 27ca0cf
File tree 7 files changed +438
-620
lines changed
7 files changed +438
-620
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,18 @@ jobs:
34
34
with :
35
35
images : ${{ env.REGISTRY }}/${{ env.GITHUB_REPO }}
36
36
37
+ - name : Set outputs
38
+ id : vars
39
+ run : echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
40
+
37
41
- name : Build and push Docker image
38
42
uses : docker/build-push-action@v6
39
43
with :
40
44
context : .
41
45
push : true
42
46
tags : ${{ steps.meta.outputs.tags }}
43
47
labels : ${{ steps.meta.outputs.labels }}
44
- build-args : github_token=${{ secrets.GITHUB_TOKEN }}
48
+ build-args : |
49
+ github_token=${{ secrets.GITHUB_TOKEN }}
50
+ build_link=https://github.com/${{ env.GITHUB_REPO }}/tree/${{ github.sha }}
51
+ build_sha=${{ steps.vars.outputs.sha_short }}
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ COPY . .
13
13
ARG github_token
14
14
ENV GITHUB_TOKEN=$github_token
15
15
16
+ ARG build_link
17
+ ENV BUILD_LINK=$build_link
18
+
19
+ ARG build_name
20
+ ENV BUILD_NAME=$build_name
21
+
16
22
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
17
23
18
24
RUN pnpm run build
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <footer >
3
+ <span >
4
+ <span >atlas@</span >
5
+ <a v-if =" buildLink" :href =" buildLink" >{{ buildName }}</a >
6
+ <span v-else >{{ buildName }}</span >
7
+ </span >
8
+ <span class =" icons" >
9
+ <a title =" View Source Code" href =" https://github.com/VoidShake/Atlas" >
10
+ <GitHubIcon />
11
+ </a >
12
+ <a title =" Help Translate" href =" https://weblate.macarena.ceo/projects/void-shake/atlas/" >
13
+ <WeblateIcon />
14
+ </a >
15
+ </span >
16
+ </footer >
17
+ </template >
18
+
19
+ <script lang="ts" setup>
20
+ import { GitHubIcon , WeblateIcon } from ' vue3-simple-icons' ;
21
+
22
+ const { buildName, buildLink } = useAppConfig ()
23
+
24
+ </script >
25
+
26
+ <style lang="scss" scoped>
27
+ footer {
28
+ @apply py-4 px- 5;
29
+ @apply flex items-center ;
30
+ @apply grid grid-flow-col ;
31
+
32
+ @apply bg-solid- 700;
33
+
34
+ a {
35
+ @apply text-accent- 400;
36
+ }
37
+
38
+ .icons {
39
+ @apply justify-self-end ;
40
+ @apply grid grid-flow-col gap- 3;
41
+
42
+ a {
43
+ & :not (:hover ) {
44
+ @apply text-inherit transition-colors ;
45
+ }
46
+ }
47
+ }
48
+ }
49
+
50
+ .dark-mode footer {
51
+ @apply bg-solid-dark- 900;
52
+ }
53
+ </style >
Original file line number Diff line number Diff line change 5
5
<section id =" action-buttons" />
6
6
<slot />
7
7
</main >
8
+
9
+ <Footer />
8
10
</section >
9
11
</template >
10
12
11
13
<style scoped>
12
14
main {
13
15
@apply p- 5 relative ;
14
- height : calc (100vh - theme(spacing.14 ));
16
+ min- height : calc (100vh - theme(spacing. 14 ) - theme(spacing.14 ));
15
17
}
16
18
17
19
#action-buttons {
Original file line number Diff line number Diff line change @@ -70,6 +70,11 @@ export default defineNuxtConfig({
70
70
} ,
71
71
} ,
72
72
73
+ appConfig : {
74
+ buildName : process . env . BUILD_NAME ?? 'dev' ,
75
+ buildLink : process . env . BUILD_LINK ?? '' ,
76
+ } ,
77
+
73
78
experimental : {
74
79
externalVue : false ,
75
80
} ,
Original file line number Diff line number Diff line change 64
64
"stylelint-config-recommended-vue" : " ^1.5.0" ,
65
65
"stylelint-config-standard-scss" : " ^6.1.0" ,
66
66
"v-network-graph" : " ^0.9.15"
67
+ },
68
+ "dependencies" : {
69
+ "vue3-simple-icons" : " ^13.2.0"
67
70
}
68
71
}
You can’t perform that action at this time.
0 commit comments