-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (41 loc) · 1.38 KB
/
release-please.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
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
pull-requests: write
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: smtp-relay
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
if: ${{ steps.release.outputs.release_created }}
- name: Build image
id: build-image
if: ${{ steps.release.outputs.release_created }}
uses: redhat-actions/buildah-build@v2
with:
image: smtp-relay
tags: latest v${{ steps.release.outputs.major }} v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}
archs: amd64, arm64
dockerfiles: |
./Dockerfile
- name: Push To docker.io
if: ${{ steps.release.outputs.release_created }}
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: docker.io/loopingz
username: loopingz
password: ${{ secrets.DOCKER_HUB }}