Skip to content

Commit

Permalink
ci: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 24, 2024
1 parent 49fb240 commit 5815450
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ jobs:
- run: echo "outputs.version - ${{ needs.build.outputs.version }}"
- run: echo "outputs.create_tag_version - ${{ needs.build.outputs.create_tag_version }}"
- run: echo "outputs.create_tag_versionNumber - ${{ needs.build.outputs.create_tag_versionNumber }}"
- run: echo "outputs.successful - ${{ needs.build.outputs.successful }}"
- run: echo "outputs.tag - ${{ needs.build.outputs.tag }}"

# Create Docker Image
Expand Down Expand Up @@ -119,30 +120,6 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: ${{ secrets.DOCKER_USER }}/tools:${{needs.build.outputs.create_tag_versionNumber}}

# Create Docker Image in Github
- name: Login to the GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push image:latest
uses: docker/build-push-action@v6
with:
push: true
context: .
platforms: linux/amd64,linux/arm64
tags: ghcr.io/jaywcjlove/tools:latest

- name: Build and push image:tags
uses: docker/build-push-action@v6
if: needs.build.outputs.successful
with:
push: true
context: .
platforms: linux/amd64,linux/arm64
tags: ghcr.io/jaywcjlove/tools:${{needs.build.outputs.create_tag_versionNumber}}

build_windows:
needs: [build]
Expand Down

0 comments on commit 5815450

Please sign in to comment.