Upd: Simplify GitHub actions

This commit is contained in:
Bojan Čekrlić 2022-04-13 13:54:28 +02:00
parent f4e2fea734
commit cb9ab38d1f
4 changed files with 14 additions and 2 deletions

View file

@ -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 }}'

View file

@ -1,7 +1,6 @@
name: 'Integration tests'
description: 'Execute integration tests'
inputs:
XOAUTH2_RELAYHOST_USERNAME:
description: 'Username'

View file

@ -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

View file

@ -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