Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Commit

Permalink
Add push to Docker registry
Browse files Browse the repository at this point in the history
  • Loading branch information
ma-sch authored May 12, 2022
1 parent ba28800 commit 38a889a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
- name: Build Docker image
run: docker build . --file Dockerfile --tag ${{env.DOCKER_IMAGE_REPOSITORY}}:${{env.DOCKER_IMAGE_TAG}}
- name: Publish Docker image to registry
uses: elgohr/Publish-Docker-Github-Action@v4
with:
name: ${{env.DOCKER_IMAGE_REPOSITORY}}:${{env.DOCKER_IMAGE_TAG}}
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}

0 comments on commit 38a889a

Please sign in to comment.