-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: 🐛 fixed a bug that headless is "false" it must bew "new" fixes #126 * chore(deps): update sigstore/cosign-installer action to v2.8.1 * ci: fixed ci pipeline * ci: latest tag false * chore(release): 📢 1.1.17-dev.1 [skip ci] ## [1.1.17-dev.1](v1.1.16...v1.1.17-dev.1) (2023-07-05) ### Bug Fixes * 🐛 fixed a bug that headless is "false" it must bew "new" ([07f87e8](07f87e8)), closes [#126](#126) * fix: fresh new start * chore(release): 📢 1.1.17-dev.2 [skip ci] ## [1.1.17-dev.2](v1.1.17-dev.1...v1.1.17-dev.2) (2023-07-05) ### Bug Fixes * fresh new start ([a4ff741](a4ff741)) * ci: more reliable ci workflows --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
- Loading branch information
1 parent
2130d33
commit ef07bf3
Showing
8 changed files
with
77 additions
and
554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Docker release | ||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
docker: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install cosign | ||
if: github.event_name != 'pull_request' | ||
uses: sigstore/cosign-installer@c85d0e205a72a294fe064f618a87dbac13084086 # v2.8.1 | ||
with: | ||
cosign-release: 'v1.13.1' | ||
|
||
- name: Setup Docker buildx | ||
uses: docker/setup-buildx-action@16c0bc4a6e6ada2cfd8afd41d22d95379cf7c32a | ||
|
||
- name: Log into registry ${{ env.REGISTRY }} | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ env.GH_TOKEN }} | ||
|
||
- name: get-npm-version | ||
id: package-version | ||
uses: martinbeentjes/npm-get-version-action@v1.3.1 | ||
|
||
- name: Extract Docker metadata | ||
id: meta | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
flavor: | | ||
latest=false | ||
tags: | | ||
type=raw,value=latest,enable={{ is_default_branch }} | ||
type=raw,value=${{ steps.package-version.outputs.current-version}} | ||
type=ref,event=branch | ||
type=semver,pattern={{major}}.{{minor}},value=${{ steps.package-version.outputs.current-version}} | ||
type=semver,pattern={{major}},value=${{ steps.package-version.outputs.current-version}} | ||
- name: Build and push Docker image | ||
id: build-and-push | ||
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 | ||
with: | ||
context: . | ||
build-args: | | ||
DOCUDIGGER_VERSION=${{ steps.package-version.outputs.current-version}} | ||
platforms: linux/amd64,linux/arm/v7 | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max |
Oops, something went wrong.