Compare commits

...

2 Commits

Author SHA1 Message Date
Shizun Ge
71a103e352 Add multiple tags to the docker image, then push 2021-10-27 00:58:23 -07:00
Shizun Ge
9afe79b651 Add the release tag to the docker image 2021-10-27 00:48:47 -07:00

View File

@@ -11,6 +11,8 @@ jobs:
steps:
- name: checkout code
uses: actions/checkout@v2
- name: extract tag string
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: install buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
@@ -18,8 +20,9 @@ jobs:
version: latest
- name: login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: build the image
- name: build and push the image
run: |
docker buildx build --push \
--tag shizunge/endlessh-go:latest \
--tag shizunge/endlessh-go:$RELEASE_VERSION \
--platform linux/amd64,linux/arm/v7,linux/arm64 .