Skip to content

remove unwanted changes #133

remove unwanted changes

remove unwanted changes #133

name: Build codeception image and push to Docker Hub
on:
schedule:
- cron: '0 0 * * 0'
push:
paths:
- 'codeception/**'
- '.github/workflows/build-codeception-image.yml'
jobs:
build:
runs-on: ubuntu-latest
env:
docker_hub_user: ${{ secrets.DOCKER_HUB_USER }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log into Docker Hub
if: ${{ github.event_name != 'pull_request' && env.docker_hub_user != '' }}
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: codeception
file: codeception/Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' && env.docker_hub_user != '' }}
tags: |
oxidesales/oxideshop-docker-codeception:latest
finish:
if: always()
needs: build
runs-on: ubuntu-latest
env:
SLACK_WEBHOOK: "${{ secrets.SLACK_WEBHOOK_URL }}"
steps:
- name: Send custom JSON data to Slack workflow
if: ${{ always() && env.SLACK_WEBHOOK != '' }}
uses: 'OXID-eSales/github-actions/slack_status@v1'
with:
slack_webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
title: '${{ github.workflow }} on ${{ github.repository }} by ${{ github.actor }}'
summary_list: |
Repository%${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
job_list: |
build%${{ needs.build.result }}