Skip to content

add 1113

add 1113 #101

Workflow file for this run

name: ci
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ contains(github.event.head_commit.message,'--ci') }}
steps:
- name: git checkout
uses: actions/checkout@v1
- name: analyze the imgae meta to be pushed
env:
GIT_MESSAGE: ${{ github.event.head_commit.message }}
run: ./ci.sh init ${GIT_MESSAGE#*--ci}
- name: docker build
run: ./ci.sh build ${GITHUB_SHA}
- name: login to gitHub container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: docker push
run: ./ci.sh push