Skip to content

Merge pull request #313 from megoRU/refactoring-v2 #247

Merge pull request #313 from megoRU/refactoring-v2

Merge pull request #313 from megoRU/refactoring-v2 #247

Workflow file for this run

name: CI/CD
on:
push:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-22.04
steps:
# Build Docker image:
- uses: actions/checkout@v2
- name: Build and tag image
run: |
docker build -t megoru/giveaway:latest .
# Login to Docker Hub:
- name: Docker login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_PASSWORD }}
# Push image to Docker Hub:
- name: Publish image
run: docker push megoru/giveaway:latest