Compare commits
8 Commits
v5
...
cerc_refac
Author | SHA1 | Date | |
---|---|---|---|
|
4f2925f426 | ||
|
d4de80ecda | ||
|
0c80bd65e4 | ||
|
884dc19b5b | ||
|
50de2af907 | ||
|
3053bbff7d | ||
|
8834335a2a | ||
|
8d72232a37 |
58
.github/workflows/publish.yaml
vendored
58
.github/workflows/publish.yaml
vendored
@ -8,34 +8,42 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Get the version
|
|
||||||
id: vars
|
|
||||||
run: echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7})
|
|
||||||
- name: Run docker build
|
|
||||||
run: make docker-build
|
|
||||||
- name: Tag docker image
|
|
||||||
run: docker tag vulcanize/ipld-eth-db docker.pkg.github.com/vulcanize/ipld-eth-db/ipld-eth-db:${{steps.vars.outputs.sha}}
|
|
||||||
- name: Docker Login
|
|
||||||
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login https://docker.pkg.github.com -u vulcanize --password-stdin
|
|
||||||
- name: Docker Push
|
|
||||||
run: docker push docker.pkg.github.com/vulcanize/ipld-eth-db/ipld-eth-db:${{steps.vars.outputs.sha}}
|
|
||||||
push_to_registries:
|
|
||||||
name: Push Docker image to Docker Hub
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: build
|
|
||||||
steps:
|
|
||||||
- name: Get the version
|
- name: Get the version
|
||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7})
|
echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7})
|
||||||
echo ::set-output name=tag::$(echo ${GITHUB_REF#refs/tags/})
|
echo ::set-output name=tag::$(echo ${GITHUB_REF#refs/tags/})
|
||||||
- name: Docker Login to Github Registry
|
- name: Run docker build
|
||||||
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login https://docker.pkg.github.com -u vulcanize --password-stdin
|
run: make docker-build
|
||||||
- name: Docker Pull
|
|
||||||
run: docker pull docker.pkg.github.com/vulcanize/ipld-eth-db/ipld-eth-db:${{steps.vars.outputs.sha}}
|
|
||||||
- name: Docker Login to Docker Registry
|
|
||||||
run: echo ${{ secrets.VULCANIZEJENKINS_PAT }} | docker login -u vulcanizejenkins --password-stdin
|
|
||||||
- name: Tag docker image
|
- name: Tag docker image
|
||||||
run: docker tag docker.pkg.github.com/vulcanize/ipld-eth-db/ipld-eth-db:${{steps.vars.outputs.sha}} vulcanize/ipld-eth-db:${{steps.vars.outputs.tag}}
|
run: docker tag cerc-io/ipld-eth-db git.vdb.to/cerc-io/ipld-eth-db/ipld-eth-db:${{steps.vars.outputs.sha}}
|
||||||
- name: Docker Push to Docker Hub
|
- name: Tag docker image
|
||||||
run: docker push vulcanize/ipld-eth-db:${{steps.vars.outputs.tag}}
|
run: docker tag git.vdb.to/cerc-io/ipld-eth-db/ipld-eth-db:${{steps.vars.outputs.sha}} git.vdb.to/cerc-io/ipld-eth-db/ipld-eth-db:${{steps.vars.outputs.tag}}
|
||||||
|
- name: Docker Login
|
||||||
|
run: echo ${{ secrets.GITEA_TOKEN }} | docker login https://git.vdb.to -u cerccicd --password-stdin
|
||||||
|
- name: Docker Push
|
||||||
|
run: docker push git.vdb.to/cerc-io/ipld-eth-db/ipld-eth-db:${{steps.vars.outputs.sha}}
|
||||||
|
- name: Docker Push with TAG to git.vdb.to
|
||||||
|
run: docker push git.vdb.to/cerc-io/ipld-eth-db/ipld-eth-db:${{steps.vars.outputs.tag}}
|
||||||
|
#push_to_registries:
|
||||||
|
# name: Push Docker image to Docker Hub
|
||||||
|
# runs-on: ubuntu-latest
|
||||||
|
# needs: build
|
||||||
|
# steps:
|
||||||
|
# - name: Get the version
|
||||||
|
# id: vars
|
||||||
|
# run: |
|
||||||
|
# echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7})
|
||||||
|
# echo ::set-output name=tag::$(echo ${GITHUB_REF#refs/tags/})
|
||||||
|
# - name: Docker Login to Github Registry
|
||||||
|
# run: echo ${{ secrets.GITEA_TOKEN }} | docker login https://git.vdb.to -u cerccicd --password-stdin
|
||||||
|
# - name: Docker Pull
|
||||||
|
# run: docker pull git.vdb.to/cerc-io/ipld-eth-db/ipld-eth-db:${{steps.vars.outputs.sha}}
|
||||||
|
# - name: Docker Push to Docker Hub
|
||||||
|
# run: docker push cerc-io/ipld-eth-db:${{steps.vars.outputs.tag}}
|
||||||
|
# - name: Docker Login to Docker Registry
|
||||||
|
# run: echo ${{ secrets.VULCANIZEJENKINS_PAT }} | docker login -u cerccicd --password-stdin
|
||||||
|
# - name: Tag docker image
|
||||||
|
# run: docker tag git.vdb.to/cerc-io/ipld-eth-db/ipld-eth-db:${{steps.vars.outputs.sha}} cerc-io/ipld-eth-db:${{steps.vars.outputs.tag}}
|
||||||
|
# - name: Docker Push to Docker Hub
|
||||||
|
# run: docker push cerc-io/ipld-eth-db:${{steps.vars.outputs.tag}}
|
||||||
|
@ -2,7 +2,7 @@ FROM golang:1.18-alpine as builder
|
|||||||
|
|
||||||
RUN apk --update --no-cache add make git g++ linux-headers
|
RUN apk --update --no-cache add make git g++ linux-headers
|
||||||
|
|
||||||
ADD . /go/src/github.com/vulcanize/ipld-eth-db
|
ADD . /go/src/github.com/cerc-io/ipld-eth-db
|
||||||
|
|
||||||
# Build migration tool
|
# Build migration tool
|
||||||
WORKDIR /go/src/github.com/pressly
|
WORKDIR /go/src/github.com/pressly
|
||||||
@ -16,9 +16,9 @@ FROM alpine
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=builder /go/src/github.com/vulcanize/ipld-eth-db/scripts/startup_script.sh .
|
COPY --from=builder /go/src/github.com/cerc-io/ipld-eth-db/scripts/startup_script.sh .
|
||||||
|
|
||||||
COPY --from=builder /go/src/github.com/pressly/goose/cmd/goose/goose goose
|
COPY --from=builder /go/src/github.com/pressly/goose/cmd/goose/goose goose
|
||||||
COPY --from=builder /go/src/github.com/vulcanize/ipld-eth-db/db/migrations migrations/vulcanizedb
|
COPY --from=builder /go/src/github.com/cerc-io/ipld-eth-db/db/migrations migrations/vulcanizedb
|
||||||
|
|
||||||
ENTRYPOINT ["/app/startup_script.sh"]
|
ENTRYPOINT ["/app/startup_script.sh"]
|
||||||
|
@ -5,7 +5,7 @@ services:
|
|||||||
restart: on-failure
|
restart: on-failure
|
||||||
depends_on:
|
depends_on:
|
||||||
- ipld-eth-db
|
- ipld-eth-db
|
||||||
image: vulcanize/ipld-eth-db
|
image: cerc-io/ipld-eth-db
|
||||||
# Build image using local context
|
# Build image using local context
|
||||||
build: .
|
build: .
|
||||||
environment:
|
environment:
|
||||||
|
@ -6,7 +6,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- ipld-eth-db
|
- ipld-eth-db
|
||||||
# Use an existing image
|
# Use an existing image
|
||||||
image: vulcanize/ipld-eth-db:v4.2.1-alpha
|
image: cerc-io/ipld-eth-db:v4.2.1-alpha-unstable
|
||||||
environment:
|
environment:
|
||||||
DATABASE_USER: "vdbm"
|
DATABASE_USER: "vdbm"
|
||||||
DATABASE_NAME: "vulcanize_testing"
|
DATABASE_NAME: "vulcanize_testing"
|
||||||
|
Loading…
Reference in New Issue
Block a user