-
Notifications
You must be signed in to change notification settings - Fork 1
72 lines (62 loc) · 1.76 KB
/
Copy pathdocker-publish.yml
File metadata and controls
72 lines (62 loc) · 1.76 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Publish Docker Images
on:
workflow_call:
inputs:
version:
description: 'Release version Format: x.y.z-[alpha|beta|pre].n'
required: true
type: string
pre_release:
description: 'Is this a pre-release?'
required: false
default: "false"
type: string
workflow_dispatch:
inputs:
version:
description: 'Release version Format: x.y.z-[alpha|beta|pre].n'
required: true
type: string
pre_release:
description: 'Is this a pre-release?'
required: false
default: false
type: boolean
env:
REGISTRY: ghcr.io
IMAGE_NAME: netignite-project/server
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
shell: bash
run: bun install
#- name: Build Nuxt application
# run: bun run build
- name: Setup Docker
id: docker-setup
uses: ./.github/workflows/docker-setup
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
gh-token: ${{ secrets.GITHUB_TOKEN }}
image-name: ${{ env.IMAGE_NAME }}
- name: Build and push Base Image
uses: ./.github/workflows/docker-build-and-push
with:
registry: ${{ env.REGISTRY }}
image-name: ${{ env.IMAGE_NAME }}
labels: ${{ steps.docker-setup.outputs.labels }}
version: ${{ inputs.version }}
pre_release: ${{ inputs.pre_release }}