Skip to content

Commit

Permalink
add push
Browse files Browse the repository at this point in the history
  • Loading branch information
sijinhui committed Nov 16, 2023
1 parent 9449dcf commit 5cf82b1
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/gitlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,36 @@ on:
- 'gitlab/**'
- '.github/workflows/gitlab.yml'
jobs:
deploy:
name: 打包并上传python
runs-on: ubuntu-latest
# runs-on: self-hosted
steps:
-
name: Checkout
uses: actions/checkout@v3
-
# Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Docker Hub
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: Build and push multi-platform Docker image
uses: docker/build-push-action@v3
with:
context: ./python
file: ./python/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/python:3.9.18-alpine
# deploy:
# name: 打包并上传python
# runs-on: ubuntu-latest
## runs-on: self-hosted
# steps:
# -
# name: Checkout
# uses: actions/checkout@v3
# -
# # Add support for more platforms with QEMU (optional)
# # https://github.com/docker/setup-qemu-action
# name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# -
# name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
#
# - name: Login to Docker Hub
# run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
# - name: Build and push multi-platform Docker image
# uses: docker/build-push-action@v3
# with:
# context: ./python
# file: ./python/Dockerfile
# platforms: linux/amd64,linux/arm64
# push: true
# tags: ${{ secrets.DOCKERHUB_USERNAME }}/python:3.9.18-alpine

upload_to_aliyun:
needs: deploy
# needs: deploy
name: 上传镜像到阿里云
# runs-on: ubuntu-latest
runs-on: self-hosted
Expand Down

0 comments on commit 5cf82b1

Please sign in to comment.