Skip to content

Commit

Permalink
Remove Azure Pipeline (#35)
Browse files Browse the repository at this point in the history
* remove deploy from develop

* Labeler Action (#24)

* Create label.yml

* Create labeler.yml

* Dotnet Build  (#25)

* Create dotnet-webapp.yml

* Create dotnet-webapi.yml

* Set up CI with Azure Pipelines (#26)

[skip ci]

* Remove unused files (#27)

* Remove unused files

* include releases in docker build

* Add CodeQL

* GitHub workflows (#31)

* Update dotnet-webapp.yml

Update dotnet-webapp.yml

* Create docker-publish-webapp.yml

* create dev tag

* Differentiate between Dev/Master Docker Build/Push

* Differentiate between Dev/Master Docker Build/Push

* Docker Publish - Include Azure Registry (#34)

* update to also include azure registry

* fix yml

* Remove Azure Pipeline
  • Loading branch information
khaneliman authored Nov 7, 2021
1 parent cb5ba50 commit 0241945
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 42 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/docker-publish-webapp-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
PRIVATE_REGISTRY: khaneliman.azurecr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}-webapp

Expand All @@ -41,14 +42,24 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Log into registry ${{ env.PRIVATE_REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
with:
registry: ${{ env.PRIVATE_REGISTRY }}
username: ${{ secrets.AZURECR_USER }}
password: ${{ secrets.AZURECR_PASS }}

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
${{ env.PRIVATE_REGISTRY }}/${{ env.IMAGE_NAME }}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/docker-publish-webapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ on:
tags: [ 'v*.*.*', 'latest' ]
pull_request:
branches: [ master ]
release:
types: [published]

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
PRIVATE_REGISTRY: khaneliman.azurecr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}-webapp

Expand All @@ -42,13 +45,25 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

#Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.PRIVATE_REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
with:
registry: ${{ env.PRIVATE_REGISTRY }}
username: ${{ secrets.AZURECR_USER }}
password: ${{ secrets.AZURECR_PASS }}

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
${{ env.PRIVATE_REGISTRY }}/${{ env.IMAGE_NAME }}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
Expand Down
40 changes: 0 additions & 40 deletions azure-pipelines.yml

This file was deleted.

0 comments on commit 0241945

Please sign in to comment.