mirror of
https://github.com/mariocandela/beelzebub.git
synced 2025-07-01 18:47:26 -04:00
refactoring pipeline CD docker image
This commit is contained in:
32
.github/workflows/docker-image.yml
vendored
32
.github/workflows/docker-image.yml
vendored
@ -9,15 +9,23 @@ jobs:
|
|||||||
CD:
|
CD:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
-
|
||||||
- name: Docker login
|
name: Checkout
|
||||||
env:
|
uses: actions/checkout@v3
|
||||||
DOCKER_USER: ${{secrets.DOCKER_USER}}
|
-
|
||||||
DOCKER_ACCESS_TOKEN: ${{secrets.DOCKER_ACCESS_TOKEN}}
|
name: Login to Docker Hub
|
||||||
run: |
|
uses: docker/login-action@v2
|
||||||
docker login -u $DOCKER_USER -p $DOCKER_ACCESS_TOKEN
|
with:
|
||||||
- name: Build the Docker image
|
username: ${{ secrets.DOCKER_USERE }}
|
||||||
run: docker build . --file Dockerfile --tag m4r10/beelzebub:${{ github.ref_name }}
|
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
||||||
|
-
|
||||||
- name: Docker Push
|
name: Set up Docker Buildx
|
||||||
run: docker push m4r10/beelzebub:${{ github.ref_name }}
|
uses: docker/setup-buildx-action@v2
|
||||||
|
-
|
||||||
|
name: Build and push
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
push: true
|
||||||
|
tags: m4r10/beelzebub:${{ github.ref_name }}
|
Reference in New Issue
Block a user