Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiritin committed Dec 25, 2021
2 parents d137bf3 + 7fc54f4 commit c16b042
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 1,028 deletions.
64 changes: 5 additions & 59 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,62 +6,8 @@ on:
- created
jobs:
build-docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker Login
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Prepare
id: prep
run: |
DOCKER_IMAGE=eurofurence/identity
VERSION=edge
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/v}
fi
if [ "${{ github.event_name }}" = "schedule" ]; then
VERSION=nightly
fi
TAGS="${DOCKER_IMAGE}:${VERSION}"
if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
TAGS="$TAGS,${DOCKER_IMAGE}:latest"
fi
echo ::set-output name=tags::${TAGS}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
with:
driver-opts: network=host
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build and push
id: docker_build
uses: docker/[email protected]
with:
cache-from: "type=local,src=/tmp/.buildx-cache"
cache-to: "type=local,dest=/tmp/.buildx-cache"
builder: ${{ steps.buildx.outputs.name }}
file: ./Dockerfile
target: production
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.prep.outputs.tags }}
deploy-to-production:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
needs: build-docker
steps:
- name: Redeploy on Development Server
uses: fjogeleit/[email protected]
with:
url: https://swarmpit.main.thiritin.com/api/services/lq6r9zu3lfpu3pye66kf55v6o/redeploy
method: POST
bearerToken: ${{ secrets.MAIN_SWARMPIT_BEARER }}
uses: Thiritin/workflows/.github/workflows/docker-semver.yml@main
secrets:
DockerHubUser: ${{ secrets.DOCKERHUB_USERNAME }}
DockerHubPass: ${{ secrets.DOCKERHUB_PASSWORD }}
DockerHubPrefix: eurofurence
35 changes: 0 additions & 35 deletions .github/workflows/laravel.yml.bak

This file was deleted.

13 changes: 0 additions & 13 deletions .styleci.yml

This file was deleted.

257 changes: 0 additions & 257 deletions CHANGELOG.md

This file was deleted.

Loading

0 comments on commit c16b042

Please sign in to comment.