Skip to content

chore(deps): update all non-major dependencies #981

chore(deps): update all non-major dependencies

chore(deps): update all non-major dependencies #981

Workflow file for this run

name: ci
on:
push:
branches: [master]
release:
types: [created]
pull_request:
branches: [master]
permissions: read-all
jobs:
build:
uses: chgl/.github/.github/workflows/standard-build.yaml@3413ea3d688a2e736fff85fea738cd04843ad679 # v1.5.10
permissions:
contents: read
id-token: write
packages: write
pull-requests: write
actions: read
security-events: write
with:
enable-build-test-layer: true
enable-upload-test-image: false
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
lint:
uses: chgl/.github/.github/workflows/standard-lint.yaml@3413ea3d688a2e736fff85fea738cd04843ad679 # v1.5.10
permissions:
contents: read
pull-requests: write
issues: write
security-events: write
actions: read
with:
codeql-languages: '["csharp"]'
enable-codeql: true
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
test:
name: test
needs:
- build
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Download image
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4.1.2
if: ${{ github.event_name == 'pull_request' }}
with:
name: ${{ needs.build.outputs.image-slug }}
path: /tmp
- name: load image
if: ${{ github.event_name == 'pull_request' }}
run: |
docker load --input /tmp/image.tar
- name: Install .NET
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
with:
dotnet-version: "8.x"
- name: Run E2E tests with newly built container image
env:
FHIR_SERVER_EXPORTER_E2E_TEST_IMAGE: ${{ fromJson(needs.build.outputs.image-meta-json).tags[0] }}
run: |
dotnet restore src/FhirServerExporter.Tests.E2E/
dotnet test src/FhirServerExporter.Tests.E2E/
release:
uses: chgl/.github/.github/workflows/standard-release.yaml@3413ea3d688a2e736fff85fea738cd04843ad679 # v1.5.10
needs:
- build
- test
permissions:
contents: write
pull-requests: write
issues: write
secrets:
semantic-release-token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
copy-image-to-dockerhub:
name: copy ghcr.io image to DockerHub
if: ${{ github.event_name != 'pull_request' }}
runs-on: ubuntu-22.04
needs:
- build
steps:
- uses: imjasonh/setup-crane@00c9e93efa4e1138c9a7a5c594acd6c75a2fbf0c # v0.3
- name: Login to DockerHub
env:
DOCKERHUB_TOKEN: "${{ secrets.DOCKERHUB_TOKEN }}"
run: |
echo "${DOCKERHUB_TOKEN}" | crane auth login docker.io --username chgl --password-stdin
- name: Copy all tags
env:
TAGS: ${{ needs.build.outputs.image-tags }}
run: |
echo "${TAGS}" | while read -r tag; do crane copy "$tag" "${tag/ghcr.io/docker.io}"; done