dd
This commit is contained in:
parent
19f3ff0279
commit
9216a058ad
1 changed files with 6 additions and 1 deletions
|
@ -25,7 +25,7 @@ jobs:
|
||||||
- name: Run hadolint
|
- name: Run hadolint
|
||||||
uses: docker://pipelinecomponents/hadolint:0.26.4
|
uses: docker://pipelinecomponents/hadolint:0.26.4
|
||||||
with:
|
with:
|
||||||
args: false ; hadolint Dockerfile
|
args: hadolint Dockerfile
|
||||||
|
|
||||||
# shellcheck: # https://github.com/marketplace/actions/shellcheck
|
# shellcheck: # https://github.com/marketplace/actions/shellcheck
|
||||||
# steps:
|
# steps:
|
||||||
|
@ -39,7 +39,9 @@ jobs:
|
||||||
build:
|
build:
|
||||||
steps:
|
steps:
|
||||||
- uses: https://github.com/actions/checkout@v4
|
- uses: https://github.com/actions/checkout@v4
|
||||||
|
if: success()
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
|
if: success()
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
# - name: Login to Docker Hub
|
# - name: Login to Docker Hub
|
||||||
# uses: docker/login-action@v3
|
# uses: docker/login-action@v3
|
||||||
|
@ -47,14 +49,17 @@ jobs:
|
||||||
# username: ${{ secrets.DOCKERHUB_USERNAME }}
|
# username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
# password: ${{ secrets.DOCKERHUB_TOKEN }}
|
# password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: Extract repository name
|
- name: Extract repository name
|
||||||
|
if: success()
|
||||||
id: meta
|
id: meta
|
||||||
run: |
|
run: |
|
||||||
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
|
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
|
||||||
- name: Extract branch name
|
- name: Extract branch name
|
||||||
|
if: success()
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "REPO_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
|
run: echo "REPO_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
|
||||||
id: extract_branch
|
id: extract_branch
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
|
if: success()
|
||||||
uses: https://github.com/docker/build-push-action@v5
|
uses: https://github.com/docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
|
Loading…
Reference in a new issue