parent
75262a0501
commit
9fc64fb2b8
@ -12,13 +12,10 @@ on:
|
||||
env:
|
||||
# Use docker.io or ghcr.io
|
||||
REGISTRY: docker.io
|
||||
IMAGE_NAME: "${{ github.repository.split('/')[1] }}"
|
||||
RELEASE: latest
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@ -34,11 +31,12 @@ jobs:
|
||||
username: ${{ secrets.DOCKER_USER }}
|
||||
password: ${{ secrets.DOCKER_PASS }}
|
||||
|
||||
- name: Extract repository name
|
||||
id: repo_name
|
||||
run: echo "IMAGE_NAME=${{ github.repository.split('/')[1] }}" >> $GITHUB_ENV
|
||||
|
||||
- name: Build Docker Image
|
||||
run: docker build -t ${{ env.IMAGE_NAME }} .
|
||||
|
||||
- name: Push Docker Image
|
||||
run: docker push ${{ env.REGISTRY }}/${{ secrets.DOCKER_USER }}/${{ env.IMAGE_NAME }}:${{ env.RELEASE }}
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user