Merge pull request #153 from sp-yduck/dependabot/go_modules/github.co… #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: CI | |
on: | |
push: | |
branches: | |
- main | |
env: | |
REGISTRY: docker.io | |
IMAGE_NAME: spyduck/cluster-api-provider-proxmox | |
jobs: | |
# add public code coverage reports | |
coverage: | |
name: unit test coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- run: "make unit-test-cover" | |
- uses: codecov/codecov-action@v2 | |
# build and push to docker.io | |
build: | |
name: docker build & push | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
# platform = linux/amd64,linux/arm64 | |
- name: Build and push Docker image | |
run: "make docker-buildx IMG=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_SHA::7}" |