2024-05-12 15:53:54 +08:00
|
|
|
name: Build image
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-06-04 20:07:09 +08:00
|
|
|
uses: http://192.168.31.55:13000/timerzz/checkout@v4
|
2024-05-12 15:53:54 +08:00
|
|
|
- name: build
|
|
|
|
run: docker build -t ${{ vars.DOCKER_REGISTRY }}/${{ vars.IMAGE_NAME }}:1.3 -f Dockerfile .
|
|
|
|
- name: tag
|
|
|
|
run: docker tag ${{ vars.DOCKER_REGISTRY }}/${{ vars.IMAGE_NAME }}:1.3 ${{ vars.DOCKER_REGISTRY }}/${{ vars.IMAGE_NAME }}:latest
|
|
|
|
- name: push 1.3
|
|
|
|
run: docker push ${{ vars.DOCKER_REGISTRY }}/${{ vars.IMAGE_NAME }}:1.3
|
|
|
|
- name: push latest
|
|
|
|
run: docker push ${{ vars.DOCKER_REGISTRY }}/${{ vars.IMAGE_NAME }}:latest
|