Skip to content

Commit

Permalink
build: update Docker image tag to 0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wuast94 committed Jul 4, 2024
1 parent b36b29d commit 918781a
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,11 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract version and increment
id: versioning
run: |
VERSION=$(git describe --tags --abbrev=0) # Assuming tags are used for versioning
BASE_VERSION=${VERSION%.*}
SUB_VERSION=${VERSION##*.}
NEW_SUB_VERSION=$((SUB_VERSION + 1))
NEW_VERSION="$BASE_VERSION.$NEW_SUB_VERSION"
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
echo "::set-output name=new_version::$NEW_VERSION"
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/${{ github.repository }}/imageproxy:${{ steps.versioning.outputs.new_version }}
tags: ghcr.io/${{ github.repository }}/imageproxy:0.0.1
platforms: linux/amd64,linux/arm64

0 comments on commit 918781a

Please sign in to comment.