diff --git a/.github/workflows/docker-cd-dev.yml b/.github/workflows/docker-cd-dev.yml index 1c16eeb..3c0c0ab 100644 --- a/.github/workflows/docker-cd-dev.yml +++ b/.github/workflows/docker-cd-dev.yml @@ -9,14 +9,22 @@ jobs: docker-cd: runs-on: ubuntu-latest steps: + - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: - submodules: true - + submodules: true + - name: Setup Docker Buildx uses: docker/setup-buildx-action@v2 - + + - name: Docker meta data + id: docker-meta-data + uses: docker/metadata-action@v4 + with: + images: codexrems/rems-smart-on-fhir + flavor: latest=false + - name: Log in to Docker Hub uses: docker/login-action@v1 with: @@ -24,9 +32,10 @@ jobs: password: ${{ secrets.DOCKER_TOKEN }} - name: Build and push Server Docker image - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . platforms: linux/amd64,linux/arm64 push: true - tags: codexrems/rems-smart-on-fhir:REMSvExperimental + tags: codexrems/rems-smart-on-fhir:experimental + labels: ${{ steps.docker-meta-data.outputs.labels }} \ No newline at end of file diff --git a/.github/workflows/docker-cd.yml b/.github/workflows/docker-cd.yml index a283439..52c9000 100644 --- a/.github/workflows/docker-cd.yml +++ b/.github/workflows/docker-cd.yml @@ -9,14 +9,22 @@ jobs: docker-cd: runs-on: ubuntu-latest steps: + - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: - submodules: true - + submodules: true + - name: Setup Docker Buildx uses: docker/setup-buildx-action@v2 - + + - name: Docker meta data + id: docker-meta-data + uses: docker/metadata-action@v4 + with: + images: codexrems/rems-smart-on-fhir + flavor: latest=false + - name: Log in to Docker Hub uses: docker/login-action@v1 with: @@ -24,9 +32,10 @@ jobs: password: ${{ secrets.DOCKER_TOKEN }} - name: Build and push Server Docker image - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . platforms: linux/amd64,linux/arm64 push: true - tags: codexrems/rems-smart-on-fhir:REMSvCurrent + tags: codexrems/rems-smart-on-fhir:latest + labels: ${{ steps.docker-meta-data.outputs.labels }} \ No newline at end of file diff --git a/.github/workflows/docker-ci.yml b/.github/workflows/docker-ci.yml index f7c8474..5edae1d 100644 --- a/.github/workflows/docker-ci.yml +++ b/.github/workflows/docker-ci.yml @@ -12,9 +12,9 @@ jobs: steps: - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: true - + - name: Test Server Docker image Builds - run: docker build . + run: docker build . \ No newline at end of file diff --git a/.github/workflows/docker-tag-cd.yml b/.github/workflows/docker-tag-cd.yml index 44dfc3f..1b8754e 100644 --- a/.github/workflows/docker-tag-cd.yml +++ b/.github/workflows/docker-tag-cd.yml @@ -1,41 +1,41 @@ -name: ci - +name: Docker Tagged Image CD on: workflow_dispatch: push: - branches: - - 'master' tags: - - 'v*' - pull_request: - branches: - - 'master' + - '*' jobs: docker: runs-on: ubuntu-latest steps: - - - name: Checkout - uses: actions/checkout@v3 - - - name: Docker meta - id: meta - uses: docker/metadata-action@v4 - with: - images: codexrems/rems-smart-on-fhir - - - name: Login to DockerHub - if: github.event_name != 'pull_request' - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v4 - with: - context: . - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + + - name: Checkout Repository + uses: actions/checkout@v3 + with: + submodules: true + + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Docker meta data + id: docker-meta-data + uses: docker/metadata-action@v4 + with: + images: codexrems/rems-smart-on-fhir + flavor: latest=false + + - name: Log in to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + push: true + platforms: linux/amd64,linux/arm64 + tags: ${{ steps.docker-meta-data.outputs.tags }} + labels: ${{ steps.docker-meta-data.outputs.labels }}