Skip to content

Commit

Permalink
try versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelef committed Aug 6, 2023
1 parent 01612fa commit dadb8ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ghcr-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ jobs:
run: |
echo "VERSION_NUMBER_WITH_OFFSET=$((1000+GITHUB_RUN_NUMBER))" >> $GITHUB_ENV
- name: Release version
if: github.event_name == 'release'
run: |
echo "VERSION_NUMBER_WITH_OFFSET=$((github.event.relase.tag_name))" >> $GITHUB_ENV
- name: Check out the repo
uses: actions/checkout@v3

Expand Down Expand Up @@ -61,6 +66,6 @@ jobs:
context: .
file: ./Dockerfile
push: true
platforms: linux/amd64,linux/arm/v7,linux/arm64
#platforms: linux/amd64,linux/arm/v7,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

docker run -p 80:8099 emafuma/otel_fiber:0.0.1

tags: ${{secrets.DOCKER_USERNAME}}/${{secrets.DOCKER_IMAGE_NAME}}:${{ github.run_number }}

0 comments on commit dadb8ec

Please sign in to comment.