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

[DO NOT MERGE]Restructuring #45

Open
wants to merge 24 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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
45 changes: 0 additions & 45 deletions .circleci/config.yml

This file was deleted.

46 changes: 36 additions & 10 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ on:
- unlabeled

env:
BASE_IMAGE_NAME: fiware/api-umbrella-base
BASE_IMAGE_NAME: fiware/api-umbrella
TEST_IMAGE_NAME: fiware/api-umbrella-test
IMAGE_NAME: fiware/api-umbrella
QUAY_IO_BASE_NAME: quay.io/wi_stefan/api-umbrella

jobs:

prerelease:
prerelease-version:
runs-on: ubuntu-latest

steps:
Expand All @@ -41,23 +41,49 @@ jobs:
id: out
run: echo "::set-output name=version::$(echo ${VERSION}-PRE-${{ steps.pr_number.outputs.nr }})"

- name: generate temporary tag
run: echo IMAGE_TAG=${{ steps.out.outputs.version }} >> $GITHUB_ENV
outputs:
tag: ${{ steps.out.outputs.version }}

create-images:
needs: prerelease-version
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
image: ["ui", "proxy", "trafficserver", "mora", "rsyslog", "api"]

steps:

- uses: actions/checkout@v2

- name: Set tag
run: echo IMAGE_TAG=${{ needs.prerelease-version.outputs.tag }} >> $GITHUB_ENV

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Log into registry
- name: Log into dockerhub
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin

- name: Log into quay.io
run: docker login -u "${{ secrets.QUAY_USERNAME }}" -p "${{ secrets.QUAY_PASSWORD }}" quay.io

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build base
run: |
docker build -f Dockerfile-base -t api-umbrella-base:${{ env.IMAGE_TAG }} .
docker build -f docker/files/${{ matrix.image }}/Dockerfile -t ${{env.BASE_IMAGE_NAME}}-${{ matrix.image }}:${{ env.IMAGE_TAG }} .

- name: Push to dockerhub
run: |
docker tag ${{env.BASE_IMAGE_NAME}}-${{ matrix.image }}:${{ env.IMAGE_TAG }} ${{env.BASE_IMAGE_NAME}}-${{ matrix.image }}:latest
docker push ${{env.BASE_IMAGE_NAME}}-${{ matrix.image }}:${{ env.IMAGE_TAG }}
docker push ${{env.BASE_IMAGE_NAME}}-${{ matrix.image }}:latest

- name: Build and push snapshot
- name: Push to quay.io
run: |
docker build -f Dockerfile-build-from-base -t ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} --build-arg BASE_IMAGE=api-umbrella-base:${{ env.IMAGE_TAG }} .
docker push ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
docker tag ${{env.BASE_IMAGE_NAME}}-${{ matrix.image }}:${{ env.IMAGE_TAG }} ${{env.QUAY_IO_BASE_NAME}}-${{ matrix.image }}:${{ env.IMAGE_TAG }}
docker tag ${{env.BASE_IMAGE_NAME}}-${{ matrix.image }}:${{ env.IMAGE_TAG }} ${{env.QUAY_IO_BASE_NAME}}-${{ matrix.image }}:latest
docker push ${{env.QUAY_IO_BASE_NAME}}-${{ matrix.image }}:${{ env.IMAGE_TAG }}
docker push ${{env.QUAY_IO_BASE_NAME}}-${{ matrix.image }}:latest
53 changes: 0 additions & 53 deletions Dockerfile-beta-deploy

This file was deleted.

71 changes: 0 additions & 71 deletions Dockerfile-build

This file was deleted.

36 changes: 0 additions & 36 deletions Dockerfile-build-from-base

This file was deleted.

4 changes: 0 additions & 4 deletions Dockerfile-dev

This file was deleted.

85 changes: 0 additions & 85 deletions Dockerfile-dev-build

This file was deleted.

Loading