feat(ci): removing not used env: block #198
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Docker image | |
run: docker build -t visibilityspots/cloudflared:dev . | |
- name: Install Goss | |
uses: e1himself/[email protected] | |
with: | |
version: 'v0.4.9' | |
- name: Execute Goss tests | |
env: | |
GOSS_FILES_STRATEGY: cp | |
run: dgoss run visibilityspots/cloudflared:dev | |
deploy: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Docker Login | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build and push latest | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: ./Dockerfile | |
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 | |
push: true | |
tags: | | |
visibilityspots/cloudflared:latest | |
visibilityspots/cloudflared:${{ github.ref_name }} | |
cache-from: type=registry,ref=visibilityspots/cloudflared:buildcache | |
cache-to: type=registry,ref=visibilityspots/cloudflared:buildcache,mode=max | |
- name: Update CHANGELOG | |
id: changelog | |
uses: requarks/changelog-action@v1 | |
with: | |
token: ${{ github.token }} | |
tag: ${{ github.ref_name }} | |
- name: Create github release | |
uses: ncipollo/release-action@v1 | |
with: | |
makeLatest: true | |
allowUpdates: true | |
body: ${{ steps.changelog.output.changes }} | |
token: ${{ github.token }} | |
- name: Commit CHANGELOG.md | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
branch: main | |
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]' | |
file_pattern: CHANGELOG.md |