Skip to content

Commit

Permalink
fix: release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AdriaCarrera committed Jan 16, 2024
1 parent 2407d77 commit 5390c6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,16 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
- run: |
TAG=${{ github.event.inputs.tag }}
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
# Build and push docker image
- name: Build docker image
uses: docker/build-push-action@v4
with:
target: release
push: true
build-args: VERSION=${{ github.event.inputs.tag }}
build-args: VERSION=${{ env.VERSION }}
tags: |
peersyst/exrp:${{ github.event.inputs.tag }}
${{ fromJSON('["", "peersyst/exrp:latest"]')[github.event.inputs.is_latest_release == 'true'] }}
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ RUN touch /test.lock

FROM golang:1.20 AS release
WORKDIR /
# TODO: Restore this
# COPY --from=integration /test.lock /test.lock
COPY --from=integration /test.lock /test.lock
COPY --from=build /go/src/github.com/Peersyst/exrp/release /binaries
COPY --from=build /usr/bin/exrpd /usr/bin/exrpd
ENTRYPOINT ["/bin/sh", "-ec"]
Expand Down

0 comments on commit 5390c6c

Please sign in to comment.