diff options
-rw-r--r-- | .github/workflows/release.yml | 8 | ||||
-rw-r--r-- | Dockerfile | 6 |
2 files changed, 10 insertions, 4 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 457ac6f0..2a5972df 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -118,6 +118,9 @@ jobs: - name: Check out code uses: actions/checkout@v2 + - name: Make docker login + run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_LOGIN }}" --password-stdin &> /dev/null + - name: Generate builder values id: values run: | @@ -127,7 +130,10 @@ jobs: - name: Build image run: | docker build \ - --tag rr:local \ + --tag "spiralscout/roadrunner:${{ steps.values.outputs.version }}" \ --build-arg "APP_VERSION=${{ steps.values.outputs.version }}" \ --build-arg "BUILD_TIME=${{ steps.values.outputs.timestamp }}" \ . + + - name: Push image into registry + run: docker push "spiralscout/roadrunner:${{ steps.values.outputs.version }}" @@ -7,9 +7,9 @@ ARG APP_VERSION="undefined" ARG BUILD_TIME="undefined" # arguments to pass on each go tool link invocation -ENV LDFLAGS="-X github.com/spiral/roadrunner/cmd/rr/cmd.Version=$APP_VERSION \ --X github.com/spiral/roadrunner/cmd/rr/cmd.BuildTime=$BUILD_TIME \ --s" +ENV LDFLAGS="-s \ +-X github.com/spiral/roadrunner/cmd/rr/cmd.Version=$APP_VERSION \ +-X github.com/spiral/roadrunner/cmd/rr/cmd.BuildTime=$BUILD_TIME" COPY . /src |