1
0
mirror of https://github.com/docker-mailserver/docker-mailserver.git synced 2025-08-08 23:06:49 +02:00

Introducing the repository secret (#18)

* fixes #17
* corrections and adjustments
This commit is contained in:
Georg Lauterbach
2021-01-18 20:51:56 +01:00
committed by GitHub
parent a751b5018f
commit dba291dc43
8 changed files with 38 additions and 36 deletions

View File

@ -8,7 +8,8 @@ jobs:
stale:
runs-on: ubuntu-20.04
steps:
- uses: actions/stale@v3
- name: Close stale issues
uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 1 # TODO just for testing purposes, otherwise (20)

View File

@ -53,7 +53,7 @@ jobs:
- name: Prepare tags
id: prep
run: |
DOCKER_IMAGE=docker.io/mailserver/docker-mailserver
DOCKER_IMAGE=${{ secrets.DOCKER_REPOSITORY }}
VERSION=latest
[[ $GITHUB_REF == refs/tags/* ]] && VERSION=${GITHUB_REF#refs/tags/v}
[[ $GITHUB_REF == 'refs/heads/stable' ]] && VERSION=stable

View File

@ -16,7 +16,7 @@ jobs:
- name: Prepare
id: prep
run: |
TAGS="docker.io/mailserver/docker-mailserver:stable"
TAGS=${{ secrets.DOCKER_REPOSITORY }}:stable
echo ::set-output name=tags::${TAGS}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
@ -38,6 +38,5 @@ jobs:
VCS_REF=${{ github.sha }}
VCS_VER=${{ github.ref }}
platforms: linux/amd64,linux/arm/v7,linux/arm64
pull: true
push: true
tags: ${{ steps.prep.outputs.tags }}