Skip to content

CI: test the image built in this action #137

CI: test the image built in this action

CI: test the image built in this action #137

Workflow file for this run

name: Image Builder
on:
push:
# branch: main
jobs:
# Build images and push them
build:
name: Build tagged Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
openjournals/inara
ghcr.io/openjournals/inara
tags: |
type=semver,pattern={{version}}
type=edge,branch=main
- name: Build and maybe push image
id: push
uses: docker/build-push-action@v5
with:
context: '.'
push: ${{ github.ref == 'refs/heads/main' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Placeholder task
run: make tags TAGS=${{ steps.meta.outputs.tags }}
# - name: Test image
# run: make test TAGS=${{ steps.meta.outputs.tags }}