Skip to content

Commit 518eed8

Browse files
committed
chore: release on tags
1 parent 4676b3f commit 518eed8

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on: # yamllint disable-line rule:truthy
1313

1414
jobs:
1515
build:
16+
name: Build and Test
1617
runs-on: ubuntu-latest
1718
steps:
1819
- uses: actions/checkout@v4

.github/workflows/docker-release.yml renamed to .github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
---
2-
name: Docker Release
2+
name: Release
33

44
on: # yamllint disable-line rule:truthy
55
push:
6-
branches:
7-
- main
6+
tags:
7+
- '*'
88

99
jobs:
1010
build:
11+
name: Build and Release
12+
permissions:
13+
packages: write
14+
checks: write
1115
runs-on: ubuntu-latest
1216
steps:
1317
- uses: actions/checkout@v4
1418
with:
1519
fetch-depth: 1
1620
- name: Set up QEMU
1721
uses: docker/setup-qemu-action@v3
22+
- name: Set up Docker Buildx
23+
uses: docker/setup-buildx-action@v3
1824
- name: Setup faas-cli
1925
run: |
2026
curl -sSL https://cli.openfaas.com | sh
@@ -23,7 +29,7 @@ jobs:
2329
with:
2430
registry: ghcr.io
2531
username: ${{ github.repository_owner }}
26-
password: ${{ secrets.GHCR_AUTH_TOKEN }}
32+
password: ${{ secrets.GITHUB_TOKEN }}
2733
- name: Pull template
2834
run: |
2935
git clone https://github.com/tschaefer/openfaas-perl-mojo-template -b full-mojo _template

0 commit comments

Comments
 (0)