Skip to content

Commit

Permalink
Reduced testing
Browse files Browse the repository at this point in the history
  • Loading branch information
moubctez committed Aug 14, 2024
1 parent 91f0313 commit a64d2a4
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ env:
jobs:
test:
runs-on: [self-hosted, Linux, X64]
container: rust:1.75
container: rust:1

steps:
- name: Debug
Expand Down
114 changes: 57 additions & 57 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,63 +7,63 @@ on:
- v*.*.*

jobs:
publish-docker:
runs-on: [self-hosted, Linux]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/DefGuard/gateway
tags: |
type=raw,value=latest
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3
with:
config-inline: |
[registry."docker.io"]
mirrors = ["dockerhub-proxy.teonite.net"]
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build container
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

create-release:
name: create-release
runs-on: self-hosted
outputs:
upload_url: ${{ steps.release.outputs.upload_url }}
steps:
- name: Create GitHub release
id: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
generate_release_notes: true
# publish-docker:
# runs-on: [self-hosted, Linux]
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# with:
# submodules: recursive
# - name: Docker meta
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: |
# ghcr.io/DefGuard/gateway
# tags: |
# type=raw,value=latest
# type=semver,pattern={{version}}
# type=semver,pattern={{major}}.{{minor}}
# type=sha
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
# - name: Set up Docker BuildX
# uses: docker/setup-buildx-action@v3
# with:
# config-inline: |
# [registry."docker.io"]
# mirrors = ["dockerhub-proxy.teonite.net"]
# - name: Login to GitHub Container Registry
# if: github.event_name != 'pull_request'
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Build container
# uses: docker/build-push-action@v5
# with:
# context: .
# platforms: linux/amd64,linux/arm64
# push: ${{ github.event_name != 'pull_request' }}
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
# cache-from: type=gha
# cache-to: type=gha,mode=max

# create-release:
# name: create-release
# runs-on: self-hosted
# outputs:
# upload_url: ${{ steps.release.outputs.upload_url }}
# steps:
# - name: Create GitHub release
# id: release
# uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# draft: true
# generate_release_notes: true

build-release:
name: Release ${{ matrix.build }}
Expand Down

0 comments on commit a64d2a4

Please sign in to comment.