Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Merge pull request #37 from vasilionjea/dependabot/npm_and_yarn/axios… #60

Merge pull request #37 from vasilionjea/dependabot/npm_and_yarn/axios…

Merge pull request #37 from vasilionjea/dependabot/npm_and_yarn/axios… #60

Workflow file for this run

name: Build and push container image
on:
workflow_dispatch:
push:
branches: [ "main" ]
tags: [ "v*" ]
permissions:
contents: read
env:
DOCKER_HUB_REPO: vasilionjea/fish-species-api
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.DOCKER_HUB_REPO }}
tags: |
type=semver,pattern={{raw}}
type=raw,value=latest,enable={{is_default_branch}}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
name: Build and push to Docker Hub
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}