Skip to content

Commit

Permalink
feat(#45): cf deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
jhagestedt authored May 4, 2021
1 parent 2e4d021 commit 1fa5878
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 5 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: ci-deploy

This comment has been minimized.

Copy link
@Nando982

Nando982 Nov 1, 2021

Ferdinando Insidioso

on:
workflow_dispatch:
inputs:
version:
required: true
description: Version to deploy
jobs:
deploy:
runs-on: ubuntu-20.04
environment: dev
env:
APP_VERSION: ${{ github.event.inputs.version }}
steps:
- name: cf setup
run: |-
curl -sL "https://packages.cloudfoundry.org/stable?release=${CF_RELEASE}&version=${CF_VERSION}" | \
sudo tar -zx -C /usr/local/bin
env:
CF_VERSION: 7.2.0
CF_RELEASE: linux64-binary
- name: cf push
run: |-
cf api ${CF_API}
cf auth
cf target -o ${CF_ORG} -s ${CF_SPACE}
cf push ${APP_NAME} --docker-image ${APP_IMAGE}:${APP_VERSION} --docker-username ${CF_DOCKER_USERNAME}
env:
APP_NAME: dgca-issuance-web
APP_IMAGE: docker.pkg.github.com/${{ github.repository }}/dgca-issuance-web
CF_API: ${{ secrets.CF_API }}
CF_ORG: ${{ secrets.CF_ORG }}
CF_SPACE: ${{ secrets.CF_SPACE }}
CF_USERNAME: ${{ secrets.CF_USERNAME }}
CF_PASSWORD: ${{ secrets.CF_PASSWORD }}
CF_DOCKER_USERNAME: ${{ secrets.CF_DOCKER_USERNAME }}
CF_DOCKER_PASSWORD: ${{ secrets.CF_DOCKER_PASSWORD }}
5 changes: 2 additions & 3 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,5 @@ jobs:
CF_SPACE: ${{ secrets.CF_SPACE }}
CF_USERNAME: ${{ secrets.CF_USERNAME }}
CF_PASSWORD: ${{ secrets.CF_PASSWORD }}
CF_DOCKER_USERNAME: ${{ github.actor }}
CF_DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}

CF_DOCKER_USERNAME: ${{ secrets.CF_DOCKER_USERNAME }}
CF_DOCKER_PASSWORD: ${{ secrets.CF_DOCKER_PASSWORD }}
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@ services:
internal:

dgc-issuance-service:
image: docker.pkg.github.com/eu-digital-green-certificates/dgca-issuance-service/dgca-issuance-service:0.0.5
image: docker.pkg.github.com/eu-digital-green-certificates/dgca-issuance-service/dgca-issuance-service:0.0.9
container_name: dgc-issuance-service
hostname: dgc-issuance-service
ports:
- 8081:8081
environment:
- SERVER_PORT=8081
- SPRING_PROFILES_ACTIVE=dev
networks:
internal:
restart: unless-stopped
Expand Down

0 comments on commit 1fa5878

Please sign in to comment.