Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Publish e2eAIOK Docker PyTorch1.5 #507

Publish e2eAIOK Docker PyTorch1.5

Publish e2eAIOK Docker PyTorch1.5 #507

name: Publish e2eAIOK Docker PyTorch1.5
on:
workflow_run:
workflows: ["Publish e2eAIOK Nightly Release to PyPI"]
types:
- completed
workflow_dispatch:
push:
branches:
- main
paths:
- 'Dockerfile-ubuntu/DockerfilePytorch'
- '.github/workflows/release_docker_pytorch.yml'
jobs:
e2eaiok-release-docker:
runs-on: self-hosted
if: ${{ github.repository_owner == 'intel' }}
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up Env
run: |
echo RELEASE_VERSION=$(cat e2eAIOK/version | head -1) >> $GITHUB_ENV
echo http_proxy=${http_proxy} >> $GITHUB_ENV
echo https_proxy=${https_proxy} >> $GITHUB_ENV
echo no_proxy=${no_proxy} >> $GITHUB_ENV
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: |
env.http_proxy=${{ env.http_proxy }}
env.https_proxy=${{ env.https_proxy }}
"env.no_proxy='${{ env.no_proxy}}'"
-
name: Build and Push Docker images
uses: docker/build-push-action@v3
with:
context: ./Dockerfile-ubuntu
file: ./Dockerfile-ubuntu/DockerfilePytorch
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/e2eaiok-pytorch:${{ env.RELEASE_VERSION }} , ${{ secrets.DOCKER_HUB_USERNAME }}/e2eaiok-pytorch:latest
build-args: |
"http_proxy=${{ env.http_proxy }}"
"https_proxy=${{ env.https_proxy }}"