Skip to content

Commit 9f0348a

Browse files
Update docker-publish.yml
1 parent 3854780 commit 9f0348a

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/docker-publish.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ env:
2424
#IMAGE_NAME: ${{ github.repository }}
2525
IMAGE_NAME: justcoded/docsify_test
2626

27-
2827
jobs:
2928
build:
3029
runs-on: ubuntu-latest
@@ -46,14 +45,6 @@ jobs:
4645
- name: Checkout repository
4746
uses: actions/checkout@v3
4847

49-
# Install the cosign tool except on PR
50-
# https://github.com/sigstore/cosign-installer
51-
- name: Install cosign
52-
if: github.event_name != 'pull_request'
53-
uses: sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 #v3.1.1
54-
with:
55-
cosign-release: 'v2.1.1'
56-
5748
# Set up BuildKit Docker container builder to be able to build
5849
# multi-platform images and export cache
5950
# https://github.com/docker/setup-buildx-action
@@ -70,6 +61,13 @@ jobs:
7061
username: ${{ github.actor }}
7162
password: ${{ secrets.GITHUB_TOKEN }}
7263

64+
- name: Build and push
65+
uses: docker/build-push-action@v5
66+
with:
67+
push: true
68+
tags: ${{ steps.extract_branch.outputs.branch }}
69+
70+
7371
# Extract metadata (tags, labels) for Docker
7472
# https://github.com/docker/metadata-action
7573
- name: Extract Docker metadata

0 commit comments

Comments
 (0)