Skip to content

yaml docker branch

yaml docker branch #31

Workflow file for this run

on:
push:
branches:
- master
jobs:
build-container:
name: Build container
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push to Docker Hub
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: |
ndeta100/hotel-api:latest
ndeta100/hotel-api:${{ github.sha }}