sharex-php-uploader/.gitea/workflows/upload-image-dev.yaml

44 lines
1.3 KiB
YAML
Raw Normal View History

2023-07-08 00:00:12 +00:00
Actions name: Publish Docker Image (Development)
2023-07-06 00:04:32 +00:00
on:
push:
branches:
- "development"
jobs:
docker:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v3
2023-07-08 00:01:21 +00:00
- name: Cache Docker
uses: actions/cache@v3
2023-07-08 00:00:12 +00:00
id: docker-cache
with:
path: /usr/bin/docker
2023-07-08 00:01:21 +00:00
key: ${{ runner.os }}-docker
2023-07-08 00:00:12 +00:00
2023-07-08 00:02:19 +00:00
- name: Install Docker (if not cached)
2023-07-08 00:00:12 +00:00
if: steps.docker-cache.outputs.cache-hit != 'true'
2023-07-06 00:04:32 +00:00
run: |
wget -q -O /tmp/docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-20.10.23.tgz \
&& tar --extract --file /tmp/docker.tgz --directory /usr/bin --strip-components 1 --no-same-owner docker/docker \
2023-07-08 00:02:19 +00:00
&& rm -rf /tmp/* &&
echo "Done"
2023-07-06 00:04:32 +00:00
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v2
- name: Login to Repo
uses: https://github.com/docker/login-action@v2
with:
username: ${{ secrets.REPO_USERNAME }}
password: ${{ secrets.REPO_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v4
with:
push: true
context: .
2023-07-08 00:00:12 +00:00
tags: fascinated/sharex-php-uploader:latest