mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2025-12-06 08:27:08 +00:00
Move deb packing under deb folder
This commit is contained in:
parent
4036e5237b
commit
45c153dc1d
11
.github/workflows/build.yaml
vendored
11
.github/workflows/build.yaml
vendored
@ -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
|
||||||
|
|||||||
@ -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
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