Skip to content

New Update

New Update #217

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 .
# 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