This repository has been archived by the owner on Jun 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github-actions: merge staging into main (#250)
* serve SPA through Kestrel (#249) * restructure * update actions * actions * fix configuration provider path * add working Dockerfile * enforce code style on build * add missing quotes * rename aspnet.shared to aspnet.common * fix cache path
- Loading branch information
Showing
174 changed files
with
1,622 additions
and
1,067 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Deploy docker | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
create_tag: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
tag: ${{ steps.tag.outputs.tag }} | ||
steps: | ||
- name: Creating new tag | ||
id: tag | ||
run: | | ||
tag=$(date +"%Y.%m.%d.%H.%M") | ||
echo "tag=$tag" >> $GITHUB_OUTPUT | ||
build_and_push_app: | ||
needs: | ||
- create_tag | ||
environment: | ||
name: DockerHub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checking out the repository | ||
uses: actions/checkout@v3.5.2 | ||
|
||
- name: Setting up Quick Emulator (QEMU) | ||
uses: docker/setup-qemu-action@v2.1.0 | ||
with: | ||
platforms: linux/arm64,linux/amd64 | ||
|
||
- name: Setting up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v2.4.1 | ||
|
||
- name: Logging in to Docker Hub | ||
uses: docker/login-action@v2.1.0 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
||
- name: Building and pushing container image | ||
uses: docker/build-push-action@v4.0.0 | ||
with: | ||
context: services/steganography.api | ||
# Build sometimes fails on ARM | ||
# https://github.com/NuGet/Home/issues/12227 | ||
platforms: | | ||
linux/amd64,linux/arm64 | ||
push: true | ||
tags: | | ||
${{ secrets.DOCKER_HUB_USERNAME }}/steganography:app.latest, | ||
${{ secrets.DOCKER_HUB_USERNAME }}/steganography:app.${{ needs.create-tag.outputs.tag }} | ||
cache-from: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/steganography:app.cache | ||
cache-to: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/steganography:app.cache,mode=max |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Format steganography.api | ||
|
||
on: | ||
push: | ||
branches: | ||
- staging | ||
|
||
jobs: | ||
should_run: | ||
uses: JensDll/should-run/.github/workflows/main.yaml@main | ||
with: | ||
projects: services/steganography.api | ||
|
||
format: | ||
needs: should_run | ||
if: fromJSON(needs.should_run.outputs.result)['services/steganography.api'] == 'true' | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: services/steganography.api | ||
steps: | ||
- name: Checking out the repository | ||
uses: actions/checkout@v3.5.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.