Skip to content

work on admin panel #18

work on admin panel

work on admin panel #18

Workflow file for this run

name: Docker Image
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Log in to Docker registry
uses: docker/[email protected]
with:
registry: ${{ secrets.REGISTRY_HOST }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASS }}
- name: Generate image name
id: reponame
uses: ashley-taylor/[email protected]
with:
value: ${{ github.repository }}
regex: /|-|_
flags: g
replacement: _
- name: Show image name
run: echo "${{ steps.reponame.outputs.value }}"
- name: Build and tag Docker image
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile
push: false
tags: ${{ secrets.REGISTRY_HOST }}/${{ steps.reponame.outputs.value }}:latest, ${{ secrets.REGISTRY_HOST }}/${{ steps.reponame.outputs.value }}:${{ github.run_number }}
- name: Push Docker image to registry
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile
push: true
tags: ${{ secrets.REGISTRY_HOST }}/${{ steps.reponame.outputs.value }}:latest, ${{ secrets.REGISTRY_HOST }}/${{ steps.reponame.outputs.value }}:${{ github.run_number }}