Some checks failed
Build Docker Image / build-docker (push) Failing after 2m35s
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Build Docker Image
|
|
|
|
on:
|
|
push:
|
|
# Only build on tags (like v1.0.0)
|
|
tags:
|
|
- "v*"
|
|
|
|
jobs:
|
|
build-docker:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: catthehacker/ubuntu:act-latest
|
|
|
|
steps:
|
|
# 1. Checkout the repo
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
# 2. Set up Docker Buildx
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
# 3. Log in to your registry
|
|
- name: Login to Docker registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.comprofix.com
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
|
|
# 4. Build and push Docker image
|
|
- name: Build and push Docker image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
file: ./Dockerfile
|
|
push: true
|
|
tags: |
|
|
git.comprofix.com/mmckinnon/debian-runner:latest
|
|
git.comprofix.com/mmckinnon/debian-runner:${{ github.ref_name }}
|