-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (24 loc) · 1.04 KB
/
docker_image_release.yml
File metadata and controls
29 lines (24 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Release docker image
on:
release:
types: [published]
jobs:
build:
name: Build and run daeploy Manager
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DAEPLOY_DOCKER_USERNAME }}
password: ${{ secrets.DAEPLOY_DOCKER_PASSWORD }}
- name: Docker build and push
run: |
docker build -t daeploy/s2i-python:3.12-slim-${{ github.event.release.tag_name }} -t daeploy/s2i-python:latest ./python312-slim
docker build -t daeploy/s2i-python:3.8-slim-${{ github.event.release.tag_name }} ./python38-slim
docker build -t daeploy/s2i-python:3.6-slim-${{ github.event.release.tag_name }} ./python36-slim
docker build -t daeploy/s2i-python:3.7-slim-${{ github.event.release.tag_name }} ./python37-slim
docker build -t daeploy/s2i-python:3.9-slim-${{ github.event.release.tag_name }} ./python39-slim
docker push --all-tags daeploy/s2i-python