Skip to content

chore: update docker compose #2

chore: update docker compose

chore: update docker compose #2

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set date as version
run: echo "VERSION=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
- name: Build Docker image
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: true
no-cache: true
tags: |
blinkospace/blinko:latest
blinkospace/blinko:${{ env.VERSION }}