Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/Ny feature 🤠 #34

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 28 additions & 28 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Deploy!!
on:
# Triggers the workflow on push events, but only on "master" branch
push:
branches: [ "master" ]
branches: ["master"]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -17,21 +17,21 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3 # Checks-out your repository, so your job can access it
- uses: actions/checkout@v3 # Checks-out your repository, so your job can access it
- name: Declare some variables
#Example code to show "meta commands"
# that can be used to pass variable info to be used later
id: vars
shell: bash
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" #Gets the short sha from the commit

# Runs a set of commands using the runners shell
- name: Run some tests as multiline bash
# This is just and example to show that the file test.txt
# is available here in the pipeline. You can
# of course run way more complicated test suites.
# (The code verifies that test.txt contains the substring assigned to the SUB variable,
# and fails the test otherwise)
# This is just and example to show that the file test.txt
# is available here in the pipeline. You can
# of course run way more complicated test suites.
# (The code verifies that test.txt contains the substring assigned to the SUB variable,
# and fails the test otherwise)
run: |
STR=$(cat editme.txt)
SUB='developer'
Expand All @@ -40,23 +40,23 @@ jobs:
exit 0
fi
exit 1
# ----- DO NOT UNCOMMENT THIS, ONLY FOR EXAMPLE -----
# NB: Note that this also requires a Dockerfile etc which this repository is missing.
# run: |
# docker version
# docker build \
# --build-arg 'GIT_COMMIT=${{ github.sha }}' \
# -t my-cool-app:latest \
# .
# echo "Built image (git commit: ${{ github.sha }} tag: my-cool-app:latest)"
# - uses: azure/login@1f63701bf3e6892515f1b7ce2d2bf1708b46beaf #Login to azure from pipeline
# with:
# client-id: ${{ secrets.client-id }}
# tenant-id: ${{ secrets.tenant-id }}
# subscription-id: ${{ secrets.subscription-id }}
# - run: |
# image_url="my-registry.azure.containerregistry.com/my-cool-app"
# docker tag ${{ my-cool-app }}:latest ${image_url}:${{ github.sha }}
# az acr login --name my-registry.azure.containerregistry.com
# docker push ${image_url}:${{ github.sha }}
# ----- EXAMPLE DOCKER PUSH ENDS HERE ------
# ----- DO NOT UNCOMMENT THIS, ONLY FOR EXAMPLE -----
# NB: Note that this also requires a Dockerfile etc which this repository is missing.
# run: |
# docker version
# docker build \
# --build-arg 'GIT_COMMIT=${{ github.sha }}' \
# -t my-cool-app:latest \
# .
# echo "Built image (git commit: ${{ github.sha }} tag: my-cool-app:latest)"
# - uses: azure/login@1f63701bf3e6892515f1b7ce2d2bf1708b46beaf #Login to azure from pipeline
# with:
# client-id: ${{ secrets.client-id }}
# tenant-id: ${{ secrets.tenant-id }}
# subscription-id: ${{ secrets.subscription-id }}
# - run: |
# image_url="my-registry.azure.containerregistry.com/my-cool-app"
# docker tag ${{ my-cool-app }}:latest ${image_url}:${{ github.sha }}
# az acr login --name my-registry.azure.containerregistry.com
# docker push ${image_url}:${{ github.sha }}
# ----- EXAMPLE DOCKER PUSH ENDS HERE ------
12 changes: 12 additions & 0 deletions .github/workflows/newPipeline
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Pull request
on:
# Triggers the workflow on push events, but only on "master" branch
push:
branches: ["master"]
jobs:
test:
name: Test everything
runs-on: ubuntu-20.04
steps:
- name: Run a one-line script
run: echo Hello, world!
32 changes: 32 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"workbench.colorCustomizations": {
"[Material Theme Darker High Contrast]": {
"activityBarBadge.background": "#2979FF",
"activityBar.activeBorder": "#2979FF",
"list.activeSelectionForeground": "#2979FF",
"list.inactiveSelectionForeground": "#2979FF",
"list.highlightForeground": "#2979FF",
"scrollbarSlider.activeBackground": "#2979FF50",
"editorSuggestWidget.highlightForeground": "#2979FF",
"textLink.foreground": "#2979FF",
"progressBar.background": "#2979FF",
"pickerGroup.foreground": "#2979FF",
"tab.activeBorder": "#2979FF",
"notificationLink.foreground": "#2979FF",
"editorWidget.resizeBorder": "#2979FF",
"editorWidget.border": "#2979FF",
"settings.modifiedItemIndicator": "#2979FF",
"settings.headerForeground": "#2979FF",
"panelTitle.activeBorder": "#2979FF",
"breadcrumb.activeSelectionForeground": "#2979FF",
"menu.selectionForeground": "#2979FF",
"menubar.selectionForeground": "#2979FF",
"editor.findMatchBorder": "#2979FF",
"selection.background": "#2979FF40",
"statusBarItem.remoteBackground": "#2979FF"
},
"activityBar.background": "#531A1A",
"titleBar.activeBackground": "#752524",
"titleBar.activeForeground": "#FEFBFB"
}
}
2 changes: 1 addition & 1 deletion editme.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Hello guys! I'm a good pipeline developer. My name is Baloo.
Hello guys! I'm a good pipeline developer. My name is Håvard og Ingrid 🤠
Hello guys