3 Commits

Author SHA1 Message Date
Shizun Ge
893b93899f run workflow on release is created 2021-10-26 21:29:03 -07:00
Shizun Ge
147b939b00 add step to login to docker hub 2021-10-26 21:27:48 -07:00
Shizun Ge
d922f552d2 Fix workflow syntex 2021-10-26 21:06:01 -07:00

View File

@@ -1,9 +1,9 @@
name: build docker image and push to docker hub
on:
push:
tags:
- '*'
release:
types: # This configuration does not affect the page_build event above
- created
jobs:
build:
@@ -16,8 +16,10 @@ jobs:
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest
- name: login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: build the image
run: |
docker buildx build --push \
--tag shizunge/endlessh-go:latest \
--platform linux/amd64,linux/arm/v7,linux/arm64 .
run: |
docker buildx build --push \
--tag shizunge/endlessh-go:latest \
--platform linux/amd64,linux/arm/v7,linux/arm64 .