mirror of
https://github.com/peter-evans/dockerhub-description.git
synced 2024-11-24 13:09:33 +01:00
Convert main.workflow to v2 yml
This commit is contained in:
parent
09a017779e
commit
96ab422aa6
2 changed files with 17 additions and 15 deletions
15
.github/main.workflow
vendored
15
.github/main.workflow
vendored
|
@ -1,15 +0,0 @@
|
|||
workflow "Update Docker Hub Description" {
|
||||
resolves = ["Docker Hub Description"]
|
||||
on = "push"
|
||||
}
|
||||
|
||||
action "Filter master branch" {
|
||||
uses = "actions/bin/filter@master"
|
||||
args = "branch master"
|
||||
}
|
||||
|
||||
action "Docker Hub Description" {
|
||||
needs = ["Filter master branch"]
|
||||
uses = "./"
|
||||
secrets = ["DOCKERHUB_USERNAME", "DOCKERHUB_PASSWORD", "DOCKERHUB_REPOSITORY"]
|
||||
}
|
17
.github/workflows/push.yml
vendored
Normal file
17
.github/workflows/push.yml
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
on: push
|
||||
name: Update Docker Hub Description
|
||||
jobs:
|
||||
dockerHubDescription:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Filter master branch
|
||||
uses: actions/bin/filter@master
|
||||
with:
|
||||
args: branch master
|
||||
- name: Docker Hub Description
|
||||
uses: ./
|
||||
env:
|
||||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||
DOCKERHUB_REPOSITORY: ${{ secrets.DOCKERHUB_REPOSITORY }}
|
Loading…
Reference in a new issue