Move deb packing under deb folder

This commit is contained in:
Xiaonan Shen 2020-11-19 19:33:10 -08:00
parent 4036e5237b
commit 45c153dc1d
No known key found for this signature in database
GPG Key ID: 211BF560D12417F5
11 changed files with 13 additions and 28 deletions

View File

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

View File

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