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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 }}