diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bc93484..bdf1bf0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: @@ -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' @@ -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 ------ \ No newline at end of file + # ----- 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 ------ diff --git a/.github/workflows/newPipeline b/.github/workflows/newPipeline new file mode 100644 index 0000000..3780388 --- /dev/null +++ b/.github/workflows/newPipeline @@ -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! diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..a9f479e --- /dev/null +++ b/.vscode/settings.json @@ -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" + } +} \ No newline at end of file diff --git a/editme.txt b/editme.txt index af97778..ec98b8a 100644 --- a/editme.txt +++ b/editme.txt @@ -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 \ No newline at end of file