From 63454d0a58d2c1c63cc9fd61e6b66442bdb73248 Mon Sep 17 00:00:00 2001 From: Brad Liang Date: Fri, 19 Jan 2024 16:41:46 -0800 Subject: [PATCH] test: test github action --- .github/workflows/docker.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 3f99912..ebeb067 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,5 +1,6 @@ name: Build and Publish to DockerHub on: + push: release: types: [published] @@ -23,8 +24,8 @@ jobs: - name: Tag to release (-alpine) run: | docker tag $(cat BE_NAME):$(cat RELEASE_TAG) - - name: Push container to dockerhub - run: docker push --all-tags $(cat BE_NAME) + # - name: Push container to dockerhub + # run: docker push --all-tags $(cat BE_NAME) publish-ubuntu: runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/releases/') @@ -44,5 +45,5 @@ jobs: - name: Tag to release (-ubuntu) + latest run: | docker tag $(cat BE_NAME):$(cat RELEASE_TAG) $(cat BE_NAME):latest - - name: Push container to dockerhub - run: docker push --all-tags $(cat BE_NAME) + # - name: Push container to dockerhub + # run: docker push --all-tags $(cat BE_NAME)