Skip to content

Commit c8cc14a

Browse files
committed
update docker action
1 parent 73b58fa commit c8cc14a

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/docker.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,24 @@ jobs:
99
steps:
1010
- name: Check out the repo
1111
uses: actions/checkout@v2
12-
- name: Push to GitHub Packages
13-
uses: docker/build-push-action@v1
12+
13+
- name: Docker meta
14+
id: docker_meta
15+
uses: crazy-max/ghaction-docker-meta@v1
16+
with:
17+
images: ghcr.io/guilhem/rss-issues-action
18+
tag-sha: true
19+
20+
- name: Login to DockerHub
21+
uses: docker/login-action@v1
1422
with:
15-
username: ${{ github.actor }}
16-
password: ${{ secrets.GITHUB_TOKEN }}
1723
registry: ghcr.io
18-
repository: guilhem/rss-issues-action
19-
tag_with_ref: true
24+
username: ${{ github.actor }}
25+
password: ${{ github.token }}
26+
27+
- name: Push to GitHub Packages
28+
uses: docker/build-push-action@v2
29+
with:
30+
push: true
31+
tags: ${{ steps.docker_meta.outputs.tags }}
32+
labels: ${{ steps.docker_meta.outputs.labels }}

0 commit comments

Comments
 (0)