Skip to content

fixed verification

fixed verification #18

Workflow file for this run

name: ci
on:
push:
branches:
- 'main'
jobs:
build-deploy:
runs-on: ubuntu-latest
env:
DOCKER_REPOSITORY: ${{ secrets.DOCKERHUB_USERNAME }}
IMAGE_NAME: stroodle.me
IMAGE_TAG: ${{ github.run_number }}
steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Build Docker Image
run:
docker build . --tag $DOCKER_REPOSITORY/$IMAGE_NAME:$GITHUB_RUN_NUMBER --tag $DOCKER_REPOSITORY/$IMAGE_NAME:latest --no-cache
- name: Login to Docker Hub
run: |
echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u $DOCKER_REPOSITORY --password-stdin
- name: Push Image to Docker Hub
run:
docker push $DOCKER_REPOSITORY/$IMAGE_NAME --all-tags