-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1018 Bytes
/
release.yaml
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
name: Release
on:
push:
branches: ['*']
tags: ['v*']
jobs:
test:
uses: ./.github/workflows/test.yaml
secrets: inherit
release:
needs: [test]
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- id: version
uses: orbit-online/image-version@v0.9.1
- name: Checkout
uses: actions/checkout@v4
- name: Set up buildx
uses: docker/setup-buildx-action@v2
- name: Login to docker hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN_RW }}
- name: Build & push
uses: docker/build-push-action@v5
with:
file: k8s-secrets/Dockerfile
tags: secoya/pkidb-k8s-secrets:${{ steps.version.outputs.version }}
push: true
build-args: |
"BUILD_TOOL=github"
"BUILT_BY=${{ github.actor }}"
- uses: orbit-online/upkg-release@v1
with:
paths: bin common.sh LICENSE README.md