Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJohn Wesley Walker III <81404201+jww3@users.noreply.github.com>2024-02-20 17:08:08 +0100
committerGitHub <noreply@github.com>2024-02-20 17:08:08 +0100
commitcfced45d47417b7639fbe16d863b892b908e31a3 (patch)
tree0566ffa81573f5d5b84f62e1896dc0caa8a4b538 /.github
parenta94faea80ef17ee61de540210f4d8dee9f299139 (diff)
Create `test-ubuntu-git` Docker Container for Proxy Tests (#1616)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/update-test-ubuntu-git.yml56
1 files changed, 56 insertions, 0 deletions
diff --git a/.github/workflows/update-test-ubuntu-git.yml b/.github/workflows/update-test-ubuntu-git.yml
new file mode 100644
index 0000000..b5ddfe4
--- /dev/null
+++ b/.github/workflows/update-test-ubuntu-git.yml
@@ -0,0 +1,56 @@
+name: Publishes the test-ubuntu-git Container Image
+
+on:
+ # Use an on demand workflow trigger.
+ # (Forked copies of actions/checkout won't have permission to update GHCR.io/actions,
+ # so avoid trigger events that run automatically.)
+ workflow_dispatch:
+ inputs:
+ publish:
+ description: 'Publish to ghcr.io?'
+ type: boolean
+ required: true
+ default: false
+
+env:
+ REGISTRY: ghcr.io
+ IMAGE_NAME: actions/test-ubuntu-git
+
+jobs:
+ build-and-push-image:
+ runs-on: ubuntu-latest
+ # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
+ permissions:
+ contents: read
+ packages: write
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ # Use `docker/login-action` to log in to GHCR.io.
+ # Once published, the packages are scoped to the account defined here.
+ - name: Log in to the ghcr.io container registry
+ uses: docker/login-action@v3.0.0
+ with:
+ registry: ${{ env.REGISTRY }}
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+
+ # Use `docker/metadata-action` to preserve tags and labels that exist on the GHCR.io container image.
+ # - name: Extract metadata (tags, labels) for Docker
+ # id: meta
+ # uses: docker/metadata-action@v5.5.1
+ # with:
+ # images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
+
+ # Use `docker/build-push-action` to build (and optionally publish) the image.
+ - name: Build and push Docker image
+ uses: docker/build-push-action@v5.1.0
+ with:
+ context: .
+ file: images/test-ubuntu-git.Dockerfile
+ push: ${{ inputs.publish }}
+ tags: ${{ env.IMAGE_NAME }}:sha-${{ env.GITHUB_SHA }}
+ # tags: ${{ steps.meta.outputs.tags }}
+ # labels: ${{ steps.meta.outputs.labels }}