-
Notifications
You must be signed in to change notification settings - Fork 18
49 lines (45 loc) · 1.2 KB
/
deployment.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
name: Deployments
on:
push:
branches: [main]
workflow_dispatch:
permissions:
packages: write
concurrency:
group: deploy
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: buildx
uses: docker/setup-buildx-action@v3
- name: login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: build
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
push: true
tags: ghcr.io/${{ github.repository }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: publish
uses: deploys-app/deploys-action@v1
with:
project: ${{ secrets.DEPLOYS_NAME }}
location: gke.cluster-rcf2
name: creatorsgarten
image: ghcr.io/${{ github.repository }}
minReplicas: 1
maxReplicas: 2
env:
DEPLOYS_AUTH_USER: ${{ secrets.DEPLOYS_AUTH_USER }}
DEPLOYS_AUTH_PASS: ${{ secrets.DEPLOYS_AUTH_PASS }}