Skip to content

Commit

Permalink
Merge pull request #12 from leonnicolas/update-actions
Browse files Browse the repository at this point in the history
update github actions versions
  • Loading branch information
leonnicolas authored Jan 11, 2024
2 parents 036cf8c + 887625f commit fb06f0c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ jobs:
- x86_64-unknown-linux-gnu
steps:
- name: Checkout boringtun
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: cloudflare/boringtun
- uses: dtolnay/rust-toolchain@stable
- name: install cross
run: cargo install cross --git https://github.com/cross-rs/cross
- name: install binary
run: cross build --target ${{ matrix.target }} --release --bin boringtun-cli
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}
path: target/${{ matrix.target }}/release/boringtun-cli
- id: sha
run: echo "::set-output name=sha::$(git describe --always --tags --dirty)"
run: echo "sha=$(git describe --always --tags --dirty)" >> $GITHUB_OUTPUT
outputs:
sha: ${{ steps.sha.outputs.sha }}
push:
Expand All @@ -40,32 +40,32 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/download-artifact@v2
uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: aarch64-unknown-linux-gnu
path: linux/arm64/
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: armv7-unknown-linux-gnueabihf
path: linux/arm/v7/
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: x86_64-unknown-linux-gnu
path: linux/amd64/
- uses: docker/login-action@v1
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER}}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/login-action@v1
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- uses: docker/build-push-action@v2
uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/build_alpine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ jobs:
- x86_64-unknown-linux-musl
steps:
- name: Checkout boringtun
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: cloudflare/boringtun
- uses: dtolnay/rust-toolchain@stable
- name: install cross
run: cargo install cross --git https://github.com/cross-rs/cross
- name: install binary
run: cross build --target ${{ matrix.target }} --release --bin boringtun-cli
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}
path: target/${{ matrix.target }}/release/boringtun-cli
- id: sha
run: echo "::set-output name=sha::$(git describe --always --tags --dirty)"
run: echo "sha=$(git describe --always --tags --dirty)" >> $GITHUB_OUTPUT
outputs:
sha: ${{ steps.sha.outputs.sha }}
push:
Expand All @@ -40,32 +40,32 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/download-artifact@v2
uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: aarch64-unknown-linux-musl
path: linux/arm64/
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: armv7-unknown-linux-musleabihf
path: linux/arm/v7/
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: x86_64-unknown-linux-musl
path: linux/amd64/
- uses: docker/login-action@v1
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER}}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/login-action@v1
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- uses: docker/build-push-action@v2
uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v5
with:
context: .
platforms: linux/arm64, linux/arm, linux/amd64
Expand Down

0 comments on commit fb06f0c

Please sign in to comment.