forked from Mouws/protonmail-bridge-nextcoud-podman
Move deb packing under deb folder (#12)
This commit is contained in:
parent
4036e5237b
commit
cc319ba0a7
11
.github/workflows/build.yaml
vendored
11
.github/workflows/build.yaml
vendored
@ -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
|
||||
|
||||
@ -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
1
.gitignore
vendored
@ -1 +0,0 @@
|
||||
deb
|
||||
11
push-tag.sh
11
push-tag.sh
@ -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}"
|
||||
Loading…
Reference in New Issue
Block a user