Skip to content

Commit

Permalink
Dev (#129)
Browse files Browse the repository at this point in the history
* 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
3 people committed Jul 5, 2023
1 parent 2130d33 commit ef07bf3
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 554 deletions.
68 changes: 3 additions & 65 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,14 @@ name: Semantic release
on:
workflow_dispatch:
push:
paths:
- 'src/**'
branches:
- 'main'
- 'dev'
# tags:
# - 'v*.*.*'
#pull_request:
#branches:
#- 'main'
#- 'dev'

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build:
Expand All @@ -33,59 +26,4 @@ jobs:
cache: "npm"

- run: npm ci
- run: npm run semantic-release:ci
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
- run: npm run semantic-release:ci
31 changes: 0 additions & 31 deletions .github/workflows/clear-cache.yml

This file was deleted.

67 changes: 67 additions & 0 deletions .github/workflows/docker-release.yaml
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
Loading

0 comments on commit ef07bf3

Please sign in to comment.