Skip to content

Commit

Permalink
fix: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vafanassieff committed Feb 7, 2024
1 parent f423bde commit 65a65bc
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 114 deletions.
38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

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

This file was deleted.

43 changes: 19 additions & 24 deletions .github/workflows/build-and-push-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,29 @@ on:
jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: docker/setup-qemu-action@v3

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

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: vafanassieff
password: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker meta
- uses: docker/metadata-action@v3
id: meta
uses: docker/metadata-action@v3
with:
images: |
ghcr.io/ln-markets/umbrel
Expand All @@ -30,21 +39,7 @@ jobs:
type=ref,event=branch
type=sha
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: vafanassieff
password: ${{ secrets.CR_PAT }}

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

- name: Build and push
uses: docker/build-push-action@v2
- uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
Expand Down
43 changes: 19 additions & 24 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,29 @@ on:
jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: docker/setup-qemu-action@v3

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

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: vafanassieff
password: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker meta
- uses: docker/metadata-action@v3
id: meta
uses: docker/metadata-action@v3
with:
images: |
ghcr.io/ln-markets/umbrel
Expand All @@ -36,21 +45,7 @@ jobs:
type=semver,pattern=v{{major}}
type=sha
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: vafanassieff
password: ${{ secrets.CR_PAT }}

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

- name: Build and push
uses: docker/build-push-action@v2
- uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v4

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

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

- name: Build image
uses: docker/build-push-action@v2
- uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64

0 comments on commit 65a65bc

Please sign in to comment.