Skip to content

Commit

Permalink
Merge pull request #8 from zMynxx/feature/test-cd-1
Browse files Browse the repository at this point in the history
Feature/test cd 1
  • Loading branch information
zMynxx authored Feb 29, 2024
2 parents bcfc0d5 + cf72504 commit e61411d
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ jobs:
- name: Publish GitHub Release
uses: softprops/action-gh-release@v0.1.15
with:
files: /project-demo/build/artifacts/release/MyApp.out
files: |
project-demo/build/artifacts/release/MyApp.out
ceedling-0.32.0-d76db35.gem
LICENSE
tag_name: "${{ format('{0}{1}', 'v', steps.new_tag.outputs.new_tag) }}"

- name: Git Config
Expand All @@ -102,15 +106,15 @@ jobs:
with:
tag: "${{ format('{0}{1}', 'v', steps.new_tag.outputs.new_tag) }}"

- name: Publish image to DockerHub
uses: docker/build-push-action@v5.1.0
with:
context: .
file: Dockerfile.ubuntu
platforms: linux/amd64
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME}}/${{ vars.DOCKERHUB_REPO }}:22.04-v${{ steps.new_tag.outputs.new_tag }}
${{ secrets.DOCKERHUB_USERNAME}}/${{ vars.DOCKERHUB_REPO }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max
# - name: Publish image to DockerHub
# uses: docker/build-push-action@v5.1.0
# with:
# context: .
# file: Dockerfile.ubuntu
# platforms: linux/amd64
# push: true
# tags: |
# ${{ secrets.DOCKERHUB_USERNAME}}/${{ vars.DOCKERHUB_REPO }}:22.04-v${{ steps.new_tag.outputs.new_tag }}
# ${{ secrets.DOCKERHUB_USERNAME}}/${{ vars.DOCKERHUB_REPO }}:latest
# cache-from: type=gha
# cache-to: type=gha,mode=max

0 comments on commit e61411d

Please sign in to comment.