2023-01-27 14:02:34 -06:00
|
|
|
name: Build Docker Image
|
|
|
|
|
|
|
|
on:
|
2023-01-27 15:01:24 -06:00
|
|
|
workflow_call:
|
2023-04-12 23:45:21 -05:00
|
|
|
workflow_dispatch:
|
2023-01-27 14:02:34 -06:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
2023-04-12 22:42:38 -05:00
|
|
|
- name: checkout repo
|
2024-02-01 12:50:04 -06:00
|
|
|
uses: actions/checkout@v4
|
2023-04-12 22:42:38 -05:00
|
|
|
|
|
|
|
- name: Login To Registry
|
2024-02-01 12:50:04 -06:00
|
|
|
uses: docker/login-action@v3
|
2023-04-12 22:42:38 -05:00
|
|
|
with:
|
|
|
|
registry: "${{ vars.DOCKER_REGISTRY_URL }}"
|
|
|
|
username: "${{ secrets.DOCKER_REGISTRY_USER }}"
|
|
|
|
password: "${{ secrets.DOCKER_REGISTRY_PASSWORD }}"
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
2024-02-01 12:50:04 -06:00
|
|
|
uses: docker/setup-buildx-action@v3
|
2023-04-12 22:42:38 -05:00
|
|
|
|
|
|
|
- name: Build Ansible Image
|
2024-02-01 12:50:04 -06:00
|
|
|
uses: docker/build-push-action@v5
|
2023-04-12 22:42:38 -05:00
|
|
|
with:
|
2023-04-12 23:16:29 -05:00
|
|
|
context: .
|
|
|
|
file: ./Dockerfile
|
2023-04-12 22:42:38 -05:00
|
|
|
push: true
|
2023-04-12 23:12:04 -05:00
|
|
|
tags: "${{ vars.DOCKER_REGISTRY_URL }}/${{ vars.ANSIBLE_CONTAINER }}:latest"
|
2023-04-12 22:46:05 -05:00
|
|
|
|