mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-06 06:25:40 +08:00
Upd: Simplify GitHub actions
This commit is contained in:
parent
f4e2fea734
commit
cb9ab38d1f
4 changed files with 14 additions and 2 deletions
7
.github/actions/docker-hub-login/action.yaml
vendored
7
.github/actions/docker-hub-login/action.yaml
vendored
|
@ -1,6 +1,11 @@
|
|||
name: 'Setup docker buildx'
|
||||
description: 'Setup docker buildx'
|
||||
|
||||
inputs:
|
||||
DOCKER_ACCESS_TOKEN:
|
||||
description: 'DOCKER_ACCESS_TOKEN'
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
|
@ -8,4 +13,4 @@ runs:
|
|||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: 'boky'
|
||||
password: '${{ secrets.DOCKER_ACCESS_TOKEN }}'
|
||||
password: '${{ inputs.DOCKER_ACCESS_TOKEN }}'
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
name: 'Integration tests'
|
||||
description: 'Execute integration tests'
|
||||
|
||||
|
||||
inputs:
|
||||
XOAUTH2_RELAYHOST_USERNAME:
|
||||
description: 'Username'
|
||||
|
|
4
.github/workflows/master.yml
vendored
4
.github/workflows/master.yml
vendored
|
@ -53,6 +53,8 @@ jobs:
|
|||
|
||||
# Docker hub login
|
||||
- uses: ./.github/actions/docker-hub-login
|
||||
with:
|
||||
DOCKER_ACCESS_TOKEN: '${{ secrets.DOCKER_ACCESS_TOKEN }}'
|
||||
|
||||
- name: Cache Docker layers
|
||||
uses: actions/cache@v3
|
||||
|
@ -103,6 +105,8 @@ jobs:
|
|||
|
||||
# Docker hub login
|
||||
- uses: ./.github/actions/docker-hub-login
|
||||
with:
|
||||
DOCKER_ACCESS_TOKEN: '${{ secrets.DOCKER_ACCESS_TOKEN }}'
|
||||
|
||||
- name: Cache Docker layers
|
||||
uses: actions/cache@v3
|
||||
|
|
4
.github/workflows/tags.yml
vendored
4
.github/workflows/tags.yml
vendored
|
@ -55,6 +55,8 @@ jobs:
|
|||
|
||||
# Docker hub login
|
||||
- uses: ./.github/actions/docker-hub-login
|
||||
with:
|
||||
DOCKER_ACCESS_TOKEN: '${{ secrets.DOCKER_ACCESS_TOKEN }}'
|
||||
|
||||
- name: Cache Docker layers
|
||||
uses: actions/cache@v3
|
||||
|
@ -107,6 +109,8 @@ jobs:
|
|||
|
||||
# Docker hub login
|
||||
- uses: ./.github/actions/docker-hub-login
|
||||
with:
|
||||
DOCKER_ACCESS_TOKEN: '${{ secrets.DOCKER_ACCESS_TOKEN }}'
|
||||
|
||||
- name: Cache Docker layers
|
||||
uses: actions/cache@v3
|
||||
|
|
Loading…
Add table
Reference in a new issue