diff options
author | Paramtamtam <[email protected]> | 2020-12-08 11:02:54 +0500 |
---|---|---|
committer | Paramtamtam <[email protected]> | 2020-12-08 11:02:54 +0500 |
commit | 23a0215378c6181e245821c88602c1d49a1914e4 (patch) | |
tree | 304e08535e163e0131d4f57a4a5be552c2a77097 | |
parent | d39cfc438eb8affc39093b7a37cdfd52aad05da7 (diff) |
Docker build updated
-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 |