mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Workflow for manually pushing a Docker tag, refs #1281
This commit is contained in:
parent
13fd9bdf01
commit
849c4f06ea
1 changed files with 26 additions and 0 deletions
26
.github/workflows/push_docker_tag.yml
vendored
Normal file
26
.github/workflows/push_docker_tag.yml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: Push specific Docker tag
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version_tag:
|
||||
description: Tag to build and push
|
||||
|
||||
jobs:
|
||||
deploy_docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build and push to Docker Hub
|
||||
env:
|
||||
DOCKER_USER: ${{ secrets.DOCKER_USER }}
|
||||
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
|
||||
VERSION_TAG: ${{ github.event.inputs.version_tag }}
|
||||
run: |-
|
||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
export REPO=datasetteproject/datasette
|
||||
docker build -f Dockerfile \
|
||||
-t $REPO:${VERSION_TAG} \
|
||||
--build-arg VERSION=${VERSION_TAG} .
|
||||
docker tag $REPO:${VERSION_TAG}
|
||||
docker push $REPO
|
||||
Loading…
Add table
Add a link
Reference in a new issue