Skip to content

Commit

Permalink
Upgrade checkout actions
Browse files Browse the repository at this point in the history
  • Loading branch information
merschformann committed Feb 6, 2024
1 parent 965f541 commit 58ce12d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
dotnet-version: ["7.0.x"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v1.7.2
with:
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: publish

on:
workflow_dispatch: # Allow manual trigger
release:
types: [created]
workflow_dispatch: # Allow manual trigger
release:
types: [created]

jobs:
publish-sardinecan:
runs-on: ubuntu-latest
publish-sardinecan:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
steps:
- uses: actions/checkout@v4

- name: Get version
run: |
echo "VERSION=$(cat VERSION.txt)" >> $GITHUB_ENV
- name: Get version
run: |
echo "VERSION=$(cat VERSION.txt)" >> $GITHUB_ENV
- name: Build the SardineCan Docker image
run: |
echo "Building SardineCan docker in ${{ env.VERSION }}"
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
docker build --tag ghcr.io/merschformann/sardinecan:latest --tag ghcr.io/merschformann/sardinecan:${{ env.VERSION }} -f Dockerfile ..
docker push ghcr.io/merschformann/sardinecan:latest
docker push ghcr.io/merschformann/sardinecan:${{ env.VERSION }}
working-directory: ./SC.Service
- name: Build the SardineCan Docker image
run: |
echo "Building SardineCan docker in ${{ env.VERSION }}"
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
docker build --tag ghcr.io/merschformann/sardinecan:latest --tag ghcr.io/merschformann/sardinecan:${{ env.VERSION }} -f Dockerfile ..
docker push ghcr.io/merschformann/sardinecan:latest
docker push ghcr.io/merschformann/sardinecan:${{ env.VERSION }}
working-directory: ./SC.Service

0 comments on commit 58ce12d

Please sign in to comment.