Skip to content

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
shoce committed Sep 12, 2023
1 parent b4d1806 commit efc06ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ permissions:
id-token: write
on:
push:
branches: [ "main" ]
branches:
- main
env:
REGISTRY: ghcr.io
jobs:
build-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: version
run: |
VERSION=$( date '+%y%m%d.%H%M.0' )
echo "VERSION:$VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
- name: Log into registry ${{ env.REGISTRY }}
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@ on:
push:
branches:
- main
paths:
- 'helm/**'
jobs:
build-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: version
run: |
VERSION=$( date '+%y%m%d.%H%M.0' )
echo "VERSION:$VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: chart version
run: |
sed -i -e "s/__VERSION__/$VERSION/g" helm/Chart.yaml
cat helm/Chart.yaml
- name: push
Expand Down

0 comments on commit efc06ac

Please sign in to comment.