forked from skohub-io/skohub-vocabs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added workflow to publish image to dockerhub
- Loading branch information
Manuel Kummerländer
committed
Mar 22, 2024
1 parent
9f891ee
commit 6e62f1e
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- '**' | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- uses: azure/docker-login@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_EDU_HUB_REGISTRY_USERNAME }} | ||
password: ${{ secrets.DOCKER_EDU_HUB_REGISTRY_PASSWORD }} | ||
- uses: rlespinasse/[email protected] | ||
- name: Build Docker image | ||
run: docker build --tag ${{ github.repository }}:${{ env.GITHUB_REF_SLUG }} . | ||
- name: Publish to DockerHub | ||
run: docker push ${{ github.repository }}:${{ env.GITHUB_REF_SLUG }} |