ποΈ Build Jobrunner Docker image #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: π₯ Build Nginx Docker image | |
on: | |
push: | |
branches: | |
- 'nginx' | |
workflow_dispatch: | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: π Set Calver Version | |
uses: Nelyx/[email protected] | |
id: setcalver | |
with: | |
default_branch: 'refs/heads/nginx' | |
format: 'YY.MM.DD' | |
- | |
name: π Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- | |
name: ποΈ Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
push: true | |
tags: starcitizentools/nginx:latest,starcitizentools/nginx:${{ steps.setcalver.outputs.package_version }} |