This repository has been archived by the owner on Dec 18, 2024. It is now read-only.
Replace the emoji in an error message #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build Docker image and run end-to-end tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code from Github | |
uses: actions/checkout@v3 | |
- name: Run end-to-end tests | |
run: > | |
docker compose --profile testing up | |
--build | |
--exit-code-from test | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
if: ${{ github.event_name == 'push' }} | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Push image to Docker Hub | |
uses: docker/[email protected] | |
if: ${{ github.event_name == 'push' }} | |
with: | |
context: ./web | |
push: true | |
tags: | | |
${{ secrets.DOCKERHUB_USERNAME }}/page-tracker:${{ github.sha }} | |
${{ secrets.DOCKERHUB_USERNAME }}/page-tracker:latest |