Skip to content

πŸ†–βž‘οΈπŸ³ Build & Push Nginx Docker Image #104

πŸ†–βž‘οΈπŸ³ Build & Push Nginx Docker Image

πŸ†–βž‘οΈπŸ³ Build & Push Nginx Docker Image #104

name: 🐳 Build & Push Docker Image
run-name: πŸ†–βž‘οΈπŸ³ Build & Push Nginx Docker Image
on:
push:
branches:
- 'nginx'
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: πŸ”’ Set Calver Version
uses: Nelyx/action-calver@v1.1.0
id: setcalver
with:
default_branch: 'refs/heads/nginx'
format: 'YY.MM.DD'
-
name: πŸ”‘ Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: πŸ—οΈ Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: starcitizentools/nginx:latest,starcitizentools/nginx:${{ steps.setcalver.outputs.package_version }}