Skip to content

Commit b1bfaa0

Browse files
committed
fix: use github releases instead
1 parent d49ac1b commit b1bfaa0

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ name: Docker
66
# documentation.
77

88
on:
9-
schedule:
10-
- cron: '41 6 * * *'
11-
push:
12-
branches:
13-
- master
14-
workflow_call:
9+
release:
1510

1611

1712
env:
@@ -36,13 +31,6 @@ jobs:
3631
- name: Checkout repository
3732
uses: actions/checkout@v4
3833

39-
# Get release version information from github commits
40-
- name: Semantic Release
41-
id: semantic
42-
uses: cycjimmy/semantic-release-action@v4
43-
env:
44-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45-
4634
# Install the cosign tool except on PR
4735
# https://github.com/sigstore/cosign-installer
4836
- name: Install cosign
@@ -78,13 +66,12 @@ jobs:
7866
# Build and push Docker image with Buildx (don't push on PR)
7967
# https://github.com/docker/build-push-action
8068
- name: Build and push Docker image
81-
if: ${{ steps.semantic.outputs.new_release_version }}
8269
id: build-and-push
8370
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
8471
with:
8572
context: .
8673
push: ${{ github.event_name != 'pull_request' }}
87-
tags: ${{ steps.semantic.outputs.new_release_version }}
74+
tags: ${{ github.event.release.name }}
8875
labels: ${{ steps.meta.outputs.labels }}
8976
cache-from: type=gha
9077
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)