Skip to content

Fix GitHub Actions Docker login issue #3

Fix GitHub Actions Docker login issue

Fix GitHub Actions Docker login issue #3

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