Skip to content

fix: add Docker login credentials to GitHub Action #2

fix: add Docker login credentials to GitHub Action

fix: add Docker login credentials to GitHub Action #2

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to Docker
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker images
run: |
docker build . --file Dockerfile --tag my-image-name:$(date +%s)
docker push my-image-name