Skip to content
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.

Commit

Permalink
Upgrading to new container flow
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotcourant committed Sep 26, 2021
1 parent 4edb606 commit 27b7f9a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 16 deletions.
9 changes: 7 additions & 2 deletions .github/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@

staging:
environment: staging
production_environment: false
required_contexts: []
required_contexts: [ ]
auto_merge: false

acceptance:
environment: acceptance
production_environment: false
required_contexts: [ ]
auto_merge: false
17 changes: 13 additions & 4 deletions .github/workflows/incoming.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
name: GitHub
name: Pull Request

on:
push:
branches:
- staging
- trying

permissions:
actions: read
deployments: none
issues: none
packages: none
pull-requests: none
repository-projects: none
security-events: none

jobs:
test:
name: Test
Expand Down Expand Up @@ -82,11 +91,11 @@ jobs:
- run: make dependencies
- run: make docs
- run: $GITHUB_WORKSPACE/node_modules/.bin/redoc-cli bundle $GITHUB_WORKSPACE/docs/swagger.yaml -o $GITHUB_WORKSPACE/docs/index.html
docker:
container:
needs:
- test
- "test"
- "pg-test"
name: Docker
name: Container
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
26 changes: 16 additions & 10 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,23 @@ jobs:
name: Container
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build and push ghcr.io
uses: docker/build-push-action@v1
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Container Timestamp
id: timestamp
run: echo "::set-output name=date::$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
dockerfile: Dockerfile
path: .
tags: ${{ env.GITHUB_SHA }}
repository: monetr/rest-api
build-args: |
REVISION=${{ env.GITHUB_SHA }}
BUILD_TIME=${{ steps.timestamp.outputs.date }}
push: true
platforms: linux/amd64,linux/arm64
tags: monetr/rest-api:${{ env.GITHUB_SHA }}
docs-deploy:
needs:
- test
Expand Down

0 comments on commit 27b7f9a

Please sign in to comment.