Skip to content

EPROD-1110 removed https endpoints for testing #9

EPROD-1110 removed https endpoints for testing

EPROD-1110 removed https endpoints for testing #9

name: build_publish_docker_testing_images
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
# Just run it
pull_request:
branches:
- 'main'
paths:
- 'testing/**'
push:
branches:
- main
paths:
- 'testing/**'
jobs:
publish-testing-image:
strategy:
matrix:
image: ["hirosystems-ordhook", "hirosystems-ordinals-api", "hirosystems-ordinals-explorer", "ordinals-ord"]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Login to Github Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GH_PKG_TOKEN }}
- name: Build and push Docker image to GitHub Container Registry
uses: docker/build-push-action@v6
with:
context: ./testing
file: ./testing/${{ matrix.image }}/Dockerfile
# push: ${{ (github.event_name != 'pull_request' && github.ref == 'refs/heads/main') || github.ref_type == 'tag' }}
push: true
tags: ghcr.io/${{ github.repository_owner }}/testing-${{ matrix.image }}:latest