test build and push

This commit is contained in:
Abner Rizzi 2023-08-10 09:21:52 -03:00
parent 95fd7982fc
commit d0d55d424c
1 changed files with 5 additions and 4 deletions

View File

@ -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