Skip to content

Update blank.yml

Update blank.yml #20

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
docker login --username=${{ secrets.DOCKER_USERNAME }} --password=${{ secrets.DOCKER_PASSWORD }} registry.cn-hangzhou.aliyuncs.com
docker pull --platform=linux/aarch64 portainer/portainer:linux-arm64-2.0.1
docker tag portainer/portainer:linux-arm64-2.0.1 registry.cn-hangzhou.aliyuncs.com/wct_registry/portainer:linux-arm64-2.0.1
docker push registry.cn-hangzhou.aliyuncs.com/wct_registry/portainer:linux-arm64-2.0.1
# - name: Log in to Docker Hub
# uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
# # Runs a set of commands using the runners shell
# - name: Push to Docker Registry
# run: |
# docker push wuct0708/elasticsearch:7.16.3