Skip to content

Publish docker container to registry #14

Publish docker container to registry

Publish docker container to registry #14

Workflow file for this run

name: Publish docker container to registry
on:
push:
branches:
- master
tags:
- v*
workflow_dispatch:
jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the Docker image
run: ./hooks/build
env:
DOCKER_REPO: ghcr.io/${{ github.repository_owner }}/magento-run-tests
- name: Publish the Docker image
run: ./hooks/push
env:
DOCKER_REPO: ghcr.io/${{ github.repository_owner }}/magento-run-tests