Skip to content

Merge pull request #71 from traveltime-dev/actions-checkout-security-fix #40

Merge pull request #71 from traveltime-dev/actions-checkout-security-fix

Merge pull request #71 from traveltime-dev/actions-checkout-security-fix #40

Workflow file for this run

name: Docker Image
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Build the Docker image
run: |
docker build -t igeolise/traveltime-k6-benchmarks:${GITHUB_SHA::7} -t igeolise/traveltime-k6-benchmarks:latest .
- name: Login to DockerHub
run: docker login -u '${{secrets.DOCKER_HUB_USER}}' -p '${{secrets.DOCKER_HUB_PASSWORD}}'
- name: Push Docker
run: |
docker push igeolise/traveltime-k6-benchmarks:${GITHUB_SHA::7}
docker push igeolise/traveltime-k6-benchmarks:latest