update future release version and rename master to main #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish container image | |
on: | |
push: | |
branches: [ main ] | |
tags: ["v*"] | |
jobs: | |
setup: | |
name: Build Container image | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true # Fetch Hugo themes (true OR recursive) | |
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | |
- uses: docker/setup-buildx-action@v1 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- uses: peaceiris/actions-hugo@v2 | |
with: | |
extended: true | |
hugo-version: '0.111.3' | |
- name: Login in to docker registry | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Login in to quay.io registry | |
uses: docker/login-action@v1 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_TOKEN }} | |
- name: Build the content | |
run: ./scripts/build.sh |