mirror of https://github.com/1N3/Sn1per.git
test build and push
This commit is contained in:
parent
95fd7982fc
commit
d0d55d424c
|
|
@ -15,19 +15,20 @@ on:
|
|||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ github.repository | lower }} # Convert repository name to lowercase
|
||||
RAW_IMAGE_NAME: ${{ github.repository }}
|
||||
IMAGE_NAME: ${{ env.RAW_IMAGE_NAME | lower }} # Convert repository name to lowercase
|
||||
|
||||
jobs:
|
||||
deploy-docker-hello-world:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: ${{ env.REGISTRY}}/${{ env.IMAGE_NAME }}
|
||||
images: ${{ env.REGISTRY}}/${{ env.RAW_IMAGE_NAME }} # Use the original name for metadata
|
||||
flavor: latest=true
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
|
|
@ -42,7 +43,7 @@ jobs:
|
|||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v3
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile.base
|
||||
|
|
|
|||
Loading…
Reference in New Issue