Skip to content

Fix indentation in docker.yml file #6

Fix indentation in docker.yml file

Fix indentation in docker.yml file #6

Workflow file for this run

name: Publish Docker ALPHA Image
on:
workflow_dispatch:
push:
tags:
- "*"
branches:
- main
pull_request:
branches:
- main
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d')"
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker Image
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: true
tags: |
fvergaracl/game:alpha
fvergaracl/game:alpha.${{ steps.date.outputs.date }}