Remove the maximum width #22
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: Produce all tags | |
uses: docker/metadata-action@v5 | |
id: meta | |
with: | |
images: registry.cluster.megaver.se/library/hetzner-k3s-docs-webserver | |
tags: | | |
type=schedule | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=semver,pattern={{major}} | |
type=ref,event=branch | |
type=ref,event=pr | |
type=sha | |
type=raw,value=run-${{ github.run_number }}-${{ github.run_attempt }} | |
- | |
name: Build and push the Docker image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |