Move deb packing under deb folder (#12)

This commit is contained in:
Xiaonan Shen 2020-11-19 19:46:18 -08:00 committed by GitHub
parent 4036e5237b
commit cc319ba0a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 13 additions and 28 deletions

View File

@ -7,14 +7,11 @@ on:
- dev - dev
paths: paths:
- .github/workflows/build.yaml - .github/workflows/build.yaml
- build/.dockerignore - build/*
- build/build-docker.sh
- build/build.sh
- build/Dockerfile
- build/entrypoint.sh
- build/gpgparams
- build/VERSION
pull_request: pull_request:
paths:
- .github/workflows/build.yaml
- build/*
env: env:
DOCKER_REPO: shenxn/protonmail-bridge DOCKER_REPO: shenxn/protonmail-bridge

View File

@ -6,28 +6,26 @@ on:
- master - master
- dev - dev
paths: paths:
- .github/workflows/main.yaml - .github/workflows/deb.yaml
- .dockerignore - deb/*
- Dockerfile
- entrypoint.sh
- gpgparams
- install.sh
- VERSION
pull_request: pull_request:
paths:
- .github/workflows/deb.yaml
- deb/*
env: env:
DOCKER_REPO: shenxn/protonmail-bridge DOCKER_REPO: shenxn/protonmail-bridge
DOCKER_REPO_DEV: shenxn/protonmail-bridge-dev DOCKER_REPO_DEV: shenxn/protonmail-bridge-dev
jobs: jobs:
build: deb:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@master uses: actions/checkout@master
- name: Set version - name: Set version
id: version id: version
run: echo "::set-output name=version::`cat VERSION`" run: echo "::set-output name=version::`cat deb/VERSION`"
- name: Set repo - name: Set repo
id: repo id: repo
run: if [[ $GITHUB_REF == "refs/heads/master" ]]; then echo "::set-output name=repo::${DOCKER_REPO}"; else echo "::set-output name=repo::${DOCKER_REPO_DEV}"; fi run: if [[ $GITHUB_REF == "refs/heads/master" ]]; then echo "::set-output name=repo::${DOCKER_REPO}"; else echo "::set-output name=repo::${DOCKER_REPO_DEV}"; fi
@ -46,6 +44,8 @@ jobs:
password: ${{ secrets.REGISTRY_PASSWORD }} password: ${{ secrets.REGISTRY_PASSWORD }}
- uses: docker/build-push-action@v2 - uses: docker/build-push-action@v2
with: with:
context: ./deb
file: ./deb/Dockerfile
tags: | tags: |
${{ steps.repo.outputs.repo }}:latest ${{ steps.repo.outputs.repo }}:latest
${{ steps.repo.outputs.repo }}:${{ steps.version.outputs.version }} ${{ steps.repo.outputs.repo }}:${{ steps.version.outputs.version }}

1
.gitignore vendored
View File

@ -1 +0,0 @@
deb

View File

@ -1,11 +0,0 @@
#!/bin/bash
set -ex
source ./releaserc
git config --local user.email "actions@github.com"
git config --local user.name "Github Action"
git tag -a "r${RELEASE}" -m "Release ${RELEASE}"
REMOTE_REPO="https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git push "${REMOTE_REPO}" "r${RELEASE}"