Skip to content

Commit

Permalink
feat(ci): ci-workflow-for-who
Browse files Browse the repository at this point in the history
feat: workflow for docker push
  • Loading branch information
tence authored Oct 6, 2023
2 parents c55cfca + bd223c6 commit bb7f0ed
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 85 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/ci-deploy.yml

This file was deleted.

20 changes: 11 additions & 9 deletions .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -46,15 +47,16 @@ jobs:
APP_PACKAGES_USERNAME: ${{ github.actor }}
APP_PACKAGES_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
- name: docker
run: |-
echo "${APP_PACKAGES_PASSWORD}" | docker login "${APP_PACKAGES_URL}" \
--username "${APP_PACKAGES_USERNAME}" \
--password-stdin
docker build . \
--file ./Dockerfile \
--tag "${APP_PACKAGES_URL}:${APP_VERSION}"
docker push "${APP_PACKAGES_URL}:${APP_VERSION}"
run: >-
echo "${APP_PACKAGES_PASSWORD}" |
docker login "${APP_PACKAGES_URL}"
--username "${APP_PACKAGES_USERNAME}"
--password-stdin;
docker build .
--file ./Dockerfile
--tag "${APP_PACKAGES_URL}:${APP_VERSION}";
docker push "${APP_PACKAGES_URL}:${APP_VERSION}";
env:
APP_PACKAGES_URL: docker.pkg.github.com/${{ github.repository }}/dgca-verifier-service
APP_PACKAGES_URL: ghcr.io/worldhealthorganization/tng-key-distribution/tng-key-distribution
APP_PACKAGES_USERNAME: ${{ github.actor }}
APP_PACKAGES_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
39 changes: 0 additions & 39 deletions .github/workflows/ci-sonar.yml

This file was deleted.

0 comments on commit bb7f0ed

Please sign in to comment.