Use HTTPS for submodule #13
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: Docker Image CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: arc-runner | |
steps: | |
- | |
name: Install git | |
run: sudo apt-get update && sudo apt-get install -y git | |
- | |
name: Check out main repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- | |
name: Check out aux repository 1 | |
uses: actions/checkout@v4 | |
with: | |
repository: ilyannn/publish-secret-docs | |
path: build/publish-secret-docs | |
token: ${{ secrets.TOKEN_READ_MEGAVERSE_CONFIG }} | |
- | |
name: Check out aux repository 2 | |
uses: actions/checkout@v4 | |
with: | |
repository: ilyannn/hetzner-k3s-main | |
path: build/hetzner-k3s-main | |
token: ${{ secrets.TOKEN_READ_MEGAVERSE_CONFIG }} | |
- | |
name: Login to Cluster Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: registry.cluster.megaver.se | |
username: robot$github | |
password: ${{ secrets.HARBOR_TOKEN_ROBOT_GITHUB }} | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- | |
name: Build and push the Docker image | |
# run: docker build . -t registry.cluster.megaver.se/library/hetzner-k3s-docs-webserver:$(date +%s)-arm64 | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: true | |
tags: registry.cluster.megaver.se/library/hetzner-k3s-docs-webserver:latest |