Skip to content

Improve weather reply #112

Improve weather reply

Improve weather reply #112

Workflow file for this run

name: Docker Build and Push
on:
push:
branches:
- 'main'
tags:
- '*.*.*'
pull_request:
branches:
- 'main'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
-
name: Set current epoch time as env variable
run: echo "NOW=$(date +%s)" >> $GITHUB_ENV
-
name: Echo current date
run: echo $NOW
-
name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v2
with:
images: ghcr.io/${{ github.repository_owner }}/bytebot-party-pack
tags: |
type=edge
type=ref,event=branch
type=ref,event=pr
type=sha,prefix=sha-,suffix=-${{env.NOW}},format=short
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
-
name: Login to DockerHub
uses: docker/login-action@v1
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}