Skip to content

fix: prevents the application from halting after test completion (inc… #13

fix: prevents the application from halting after test completion (inc…

fix: prevents the application from halting after test completion (inc… #13

name: Build and Push Docker images
on:
push:
branches:
- main
- master
tags:
- 'v*'
paths-ignore:
- 'README.md'
- 'LICENSE'
- 'deployments/**'
- '.github/**'
workflow_dispatch:
env:
DOCKER_USERNAME: jake4
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check Out Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Extract version from tag
id: get_version
uses: battila7/get-version-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and Push Docker Image for loadtest-master
uses: docker/build-push-action@v4
with:
context: .
file: ./deployments/master.dockerfile
push: true
tags: |
${{ env.DOCKER_USERNAME }}/loadtest-master:latest
${{ env.DOCKER_USERNAME }}/loadtest-master:${{ steps.get_version.outputs.version }}
- name: Build and Push Docker Image for loadtest-worker
uses: docker/build-push-action@v4
with:
context: .
file: ./deployments/worker.dockerfile
push: true
tags: |
${{ env.DOCKER_USERNAME }}/loadtest-worker:latest
${{ env.DOCKER_USERNAME }}/loadtest-worker:${{ steps.get_version.outputs.version }}