Skip to content

Commit

Permalink
Merge pull request #88 from LucienShui/fix/image_name
Browse files Browse the repository at this point in the history
Fix image name
  • Loading branch information
LucienShui authored Mar 12, 2021
2 parents f72e978 + 5392fc8 commit b77a298
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish for master
name: Publish beta to docker registry

on:
push:
Expand Down Expand Up @@ -65,3 +65,7 @@ jobs:
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

- name: Trigger Webhook
run: |
curl -X POST "${{ secrets.BETA_WEBHOOK }}backend"
14 changes: 9 additions & 5 deletions .github/workflows/upload-to-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go Release
name: Upload to release and publish

on:
release:
Expand Down Expand Up @@ -91,10 +91,14 @@ jobs:
linux/386
push: true
tags: |
pasteme/frontend:latest
pasteme/frontend:${{ steps.release_version.outputs.tag }}
registry.cn-hangzhou.aliyuncs.com/pasteus/pasteme-frontend:latest
registry.cn-hangzhou.aliyuncs.com/pasteus/pasteme-frontend:${{ steps.release_version.outputs.tag }}
pasteme/go-backend:latest
pasteme/go-backend:${{ steps.release_version.outputs.tag }}
registry.cn-hangzhou.aliyuncs.com/pasteus/pasteme-go-backend:latest
registry.cn-hangzhou.aliyuncs.com/pasteus/pasteme-go-backend:${{ steps.release_version.outputs.tag }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

- name: Trigger Webhook
run: |
curl -X POST "${{ secrets.RELEASE_WEBHOOK }}backend"
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.cn-hangzhou.aliyuncs.com/pasteus/golang-alpine:1.0.1 as builder
FROM pasteme/golang:1.12-alpine AS builder
COPY ./ /go/src/github.com/PasteUs/PasteMeGoBackend
WORKDIR /go/src/github.com/PasteUs/PasteMeGoBackend
RUN go mod download
Expand All @@ -10,6 +10,7 @@ RUN mkdir /pastemed && \
FROM alpine:3
LABEL maintainer="Lucien Shui" \
email="[email protected]"
ENV TZ=Asia/Shanghai
COPY --from=builder /pastemed /usr/local/pastemed
RUN chmod +x /usr/local/pastemed/pastemed && \
mkdir /data && \
Expand Down

0 comments on commit b77a298

Please sign in to comment.