Diff
CHANGELOG.md | 28 ++++++++++++++++++++++++++++
Cargo.lock | 2 +-
Cargo.toml | 2 +-
.github/workflows/docker-publish.yml | 46 +++++++---------------------------------------
4 files changed, 35 insertions(+), 43 deletions(-)
@@ -1,0 +1,28 @@
# v0.1.3
- Add `ssl-cert` configuration value under `gitlab` to allow self-signed
certificates to be used (#50) - thanks @fdbastionamio for the
contribution
- Update dependencies (#54) - thanks @alexheretic for the contribution
- Allow authentication using personal access tokens rather than admin
tokens (#53) - thanks @momoson for the contribution
- Use thin LTO and strip release binaries (#56) - thanks @alexheretic
for the contribution
- Make admin-token optional (#55) - thanks @alexheretic for the
contribution
# v0.1.2
Add expires_at field to impersonation_tokens POST request to conform to
Gitlab breaking change in v16.1
# v0.1.1
Various bugfixes relating to interaction with Cargo - thanks @Eijebong
for the contribution.
# v0.1.0
Initial release
@@ -657,7 +657,7 @@
[[package]]
name = "gitlab-cargo-shim"
version = "0.1.2"
version = "0.1.3"
dependencies = [
"anyhow",
"arrayvec",
@@ -1,6 +1,6 @@
[package]
name = "gitlab-cargo-shim"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
authors = [
"Jordan Doyle <jordan@doyl.ee>"
@@ -17,64 +17,28 @@
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@1e95c1de343b5b0c23352d6417ee3e48d5bcd422
with:
cosign-release: 'v1.4.0'
uses: actions/checkout@v4
- name: Setup Docker buildx
uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
uses: docker/setup-buildx-action@v3
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Sign the published Docker image
if: ${{ github.event_name != 'pull_request' }}
env:
COSIGN_EXPERIMENTAL: "true"
run: cosign sign ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build-and-push.outputs.digest }}