Skip to content

Commit

Permalink
fix: Fix public action version
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-cj committed Sep 28, 2020
1 parent d2783c6 commit f15260e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
pwd
go env
echo "::set-env name=GOPATH::$(go env GOPATH):$GITHUB_WORKSPACE"
echo "echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}"
echo "::add-path::$(go env GOPATH)/bin"
- name: before_install
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
pwd
go env
echo "::set-env name=GOPATH::$(go env GOPATH):$GITHUB_WORKSPACE"
echo "echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}"
echo "::add-path::$(go env GOPATH)/bin"
- name: before_install
run: |
Expand All @@ -41,12 +42,11 @@ jobs:
- name: docker-build
run: |
cd src/github.com/kleveross/ormb
docker build -t ghcr.io/kleveross/klever-ormb:${{ github.ref }} -f build/ormb/Dockerfile .
docker build -t ghcr.io/kleveross/klever-ormb-storage-initializer:${{ github.ref }} -f build/ormb-storage-initializer/Dockerfile .
docker build -t ghcr.io/kleveross/klever-ormb:$RELEASE_VERSION -f build/ormb/Dockerfile .
docker build -t ghcr.io/kleveross/klever-ormb-storage-initializer:$RELEASE_VERSION -f build/ormb-storage-initializer/Dockerfile .
- name: Login to GitHub Container Registry
run: echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u ${{ secrets.GHCR_USERNAME }} --password-stdin
- name: docker-push
run: |
docker push ghcr.io/kleveross/klever-ormb:${{ github.ref }}
docker push ghcr.io/kleveross/klever-ormb-storage-initializer:${{ github.ref }}
docker push ghcr.io/kleveross/klever-ormb:$RELEASE_VERSION
docker push ghcr.io/kleveross/klever-ormb-storage-initializer:$RELEASE_VERSION

0 comments on commit f15260e

Please sign in to comment.