Skip to content

Install git in the Docker build action #4

Install git in the Docker build action

Install git in the Docker build action #4

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: arc-runner
steps:
- name: Install git on container
run: |
apt update
apt install -y git
- name: Check out repository 1
uses: actions/checkout@v3
with:
repository: ilyannn/publish-secret-docs
path: publish-secret-docs
ssh-key: ${{ secrets.SSH_KEY_PUBLISH_SECRET_DOCS }}
- name: Check out repository 2
uses: actions/checkout@v3
with:
repository: ilyannn/hetzner-k3s-main
path: hetzner-k3s-main
- name: Check out main repository
uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . -t registry.cluster.megaver.se/library/hetzner-k3s-docs-webserver:$(date +%s)-arm64