Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit e04a4d6

Browse files
Update Docker hub with latest tags using Github Actions
1 parent 5593caf commit e04a4d6

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

publish.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish on Docker Hub
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
push_to_registry:
10+
name: Push Docker image to Docker Hub
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out the repo
14+
uses: actions/checkout@v2
15+
16+
- name: Log in to Docker Hub
17+
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
18+
with:
19+
username: ${{ secrets.DOCKER_LOGIN_USERNAME }}
20+
password: ${{ secrets.DOCKER_LOGIN_PASSWORD }}
21+
22+
- name: Extract metadata (tags, labels) for Docker
23+
id: meta
24+
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
25+
with:
26+
images:
27+
- intelpython/intelpython3_core
28+
- intelpython/intelpython3_full
29+
30+
- name: Build and push Docker image
31+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
32+
with:
33+
context: .
34+
push: true
35+
tags: ${{ steps.meta.outputs.tags }}
36+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)