-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.2 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Push Hugo to GitHub
uses: elgohr/Publish-Docker-Github-Action@2.12
with:
name: ${{ github.repository }}/hugo
username: ${{ github.actor }}
password: ${{ github.token }}
registry: docker.pkg.github.com
dockerfile: Dockerfile-hugo
- name: Push Caddy to GitHub
uses: elgohr/Publish-Docker-Github-Action@2.12
with:
name: ${{ github.repository }}/caddy
username: ${{ github.actor }}
password: ${{ github.token }}
registry: docker.pkg.github.com
dockerfile: Dockerfile-caddy
- name: Push Hugo to Docker Hub
uses: elgohr/Publish-Docker-Github-Action@2.12
with:
name: astrolox/hugo
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: Dockerfile-hugo
- name: Push Caddy to Docker Hub
uses: elgohr/Publish-Docker-Github-Action@2.12
with:
name: astrolox/caddy
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: Dockerfile-caddy