mirror of https://github.com/1N3/Sn1per.git
test build and push
This commit is contained in:
parent
20e2164e81
commit
2cd7bbcbae
|
|
@ -1,6 +1,3 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
name: Build and Push docker
|
name: Build and Push docker
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|
@ -21,7 +18,7 @@ env:
|
||||||
IMAGE_NAME: ${{ github.repository }}
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
push-docker-image:
|
deploy-docker-hello-world:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
@ -45,12 +42,10 @@ jobs:
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: Dockerfile.base
|
file: Dockerfile.base
|
||||||
#push: ${{ github.ref_type == 'tag' || github.ref_name == 'main' || startsWith(github.ref_name, 'feat-')}}
|
push: ${{ github.ref_type == 'tag' || github.ref_name == 'main' || startsWith(github.ref_name, 'feat-')}}
|
||||||
push: ${{ github.ref_type == 'tag' || github.ref_name == 'main' || startsWith(github.ref_name, 'feat-') || startsWith(github.ref_name, 'gh-action') }}
|
tags: ${steps.meta.outputs.tags}
|
||||||
#tags: ${{ steps.meta.outputs.tags }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
tags: ${{ env.REGISTRY}}/${{ env.IMAGE_NAME }}
|
|
||||||
#labels: ${{ steps.meta.outputs.labels }}
|
|
||||||
Loading…
Reference in New Issue