Merge pull request #7 from voko/feature/add-git-tags
Feature/add git tags
This commit is contained in:
@@ -13,6 +13,26 @@ env:
|
|||||||
IMAGE_NAME: ${{ github.repository }}
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
tag-release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
|
needs: build-and-push-image
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Read version from file
|
||||||
|
id: version
|
||||||
|
run: echo "TAG=$(cat VERSION)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Create and push Git tag
|
||||||
|
run: |
|
||||||
|
git config user.name "${{ github.actor }}"
|
||||||
|
git config user.email "${{ github.actor }}@users.noreply.github.com"
|
||||||
|
git tag -a "${{ steps.version.outputs.TAG }}" -m "Release ${{ steps.version.outputs.TAG }}"
|
||||||
|
git push origin "${{ steps.version.outputs.TAG }}"
|
||||||
build-and-push-image:
|
build-and-push-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ This is a local container running with data stored in ./local/testdata
|
|||||||
-p 8080:8080 -e LOG_LEVEL=debug --rm --name mbz-rss\
|
-p 8080:8080 -e LOG_LEVEL=debug --rm --name mbz-rss\
|
||||||
-v ./local/testdata/:/var/mbz-rss-feeder \
|
-v ./local/testdata/:/var/mbz-rss-feeder \
|
||||||
--env-file ./local/testdata/.env \
|
--env-file ./local/testdata/.env \
|
||||||
docker.io/library/mzb-rss-feeder:1.0.0`
|
docker.io/library/mzb-rss-feeder:latest`
|
||||||
|
|
||||||
After startup the server can be accessed through http://docker-host:8080.
|
After startup the server can be accessed through http://docker-host:8080.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user