Skip to content

Commit

Permalink
test: test github action
Browse files Browse the repository at this point in the history
  • Loading branch information
bcliang committed Jan 20, 2024
1 parent b6ca1cb commit 63454d0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Build and Publish to DockerHub
on:
push:
release:
types: [published]

Expand All @@ -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/')
Expand All @@ -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)

0 comments on commit 63454d0

Please sign in to comment.