diff --git a/.github/workflows/deps.yml b/.github/workflows/deps.yml deleted file mode 100644 index 946d77cf2..000000000 --- a/.github/workflows/deps.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: "Dependency Review" -on: [push, pull_request, workflow_dispatch] -permissions: - contents: read -jobs: - dependency-review: - runs-on: ubuntu-latest - steps: - - name: "Checkout Repository" - uses: actions/checkout@v4 - with: - show-progress: false - - name: "Dependency Review" - uses: actions/dependency-review-action@v3 - govulncheck: - runs-on: ubuntu-latest - steps: - - name: "Checkout Repository" - uses: actions/checkout@v4 - with: - show-progress: false - - id: govulncheck - uses: golang/govulncheck-action@v1 - with: - go-version-input: 1.21.3 - go-version-file: go.mod diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 000000000..bea7b46c2 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,20 @@ +name: Release +on: + push: + tags: + - "v*" + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and Push + run: |- + IMG="ghcr.io/${{ github.repository }}:${{ github.ref_name }}" make docker-push-w-buildx \ No newline at end of file diff --git a/.github/workflows/tag-release.yml b/.github/workflows/tag-release.yml deleted file mode 100644 index 490c0e2ac..000000000 --- a/.github/workflows/tag-release.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: tag-release - -on: - push: - branches: - - main - - 'release-*' - paths: - - version.txt - -jobs: - tag-release: - if: ${{ github.repository == 'kubernetes-sigs/aws-load-balancer-controller' }} - runs-on: ubuntu-latest - - permissions: - contents: write - - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - run: /usr/bin/git config --global user.email actions@github.com - - run: /usr/bin/git config --global user.name 'GitHub Actions Release Tagger' - - run: hack/tag-release.sh