Skip to content

Commit

Permalink
Fix deployment, remove uncesseary files
Browse files Browse the repository at this point in the history
  • Loading branch information
Julio Gutierrez committed Apr 9, 2023
1 parent e4bd149 commit 23ef50b
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 114 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

7 changes: 0 additions & 7 deletions .github/dependabot.yml

This file was deleted.

60 changes: 26 additions & 34 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,69 +1,61 @@
name: deploy
on:
push:

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Get branch name
id: git
run: |
NAME=$(echo ${GITHUB_REF} | sed -e "s/.*\///g")
TAG=false
if [[ ${GITHUB_REF} == *"/tags/"* ]]; then
TAG=true
fi
echo name=${NAME} tag=${TAG} ref=${GITHUB_REF}
echo "::set-output name=name::${NAME}"
echo "::set-output name=tag::${TAG}"
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
with:
platforms: amd64,arm64,arm,386

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

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v1.10.0
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
images: |
${{ github.repository }}
ghcr.io/${{ github.repository }}
flavor: |
latest=false
tags: |
${{ github.repository }}:${{ steps.git.outputs.name }}
ghcr.io/${{ github.repository }}:${{ steps.git.outputs.name }}
- name: Push latest
uses: docker/build-push-action@v2
if: steps.git.outputs.tag == 'true'
type=ref,event=branch
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push
uses: docker/build-push-action@v4
with:
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: |
${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:latest
tags: ${{ steps.meta.outputs.tags }}

- name: Update repo description
uses: peter-evans/dockerhub-description@v2
if: steps.git.outputs.tag == 'true'
uses: peter-evans/dockerhub-description@v3
if: github.ref_name == 'master'
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
Expand Down
14 changes: 0 additions & 14 deletions .github/workflows/stale.yml

This file was deleted.

0 comments on commit 23ef50b

Please sign in to comment.