Skip to content

Commit

Permalink
push image to dockerhub (#184)
Browse files Browse the repository at this point in the history
* push image to dockerhub
  • Loading branch information
wph95 authored Jul 5, 2022
1 parent e6b8cff commit 18a4846
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

env:
IMAGE_VERSION: "${{ github.event.release.tag_name }}"
IMAGE_NAME: "ghcr.io/open-telemetry/demo"


steps:
- uses: actions/checkout@v3
Expand All @@ -31,7 +31,28 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: build docker image
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: build ghcr docker image
run: make build-docker-images
- name: push docker image
env:
IMAGE_NAME: "ghcr.io/open-telemetry/demo"

- name: push ghcr image
run: make push-docker-images
env:
IMAGE_NAME: "ghcr.io/open-telemetry/demo"

- name: build dockerhub docker image
run: make build-docker-images
env:
IMAGE_NAME: "otel/demo"

- name: push dockerhub image
run: make push-docker-images
env:
IMAGE_NAME: "otel/demo"

0 comments on commit 18a4846

Please sign in to comment.