Skip to content

GraphQL and refactoring. #13

GraphQL and refactoring.

GraphQL and refactoring. #13

Workflow file for this run

name: Multi-stage build and package as Docker image
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get current time
id: current-time
uses: josStorer/[email protected]
with:
format: YYYY-MM-DD-HH-mm-ss
utcOffset: "+01:00"
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/bookstore-catalog:${{ steps.current-time.outputs.formattedTime }}