screenshots: Skip if baseapp #122
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
echo "$HOME/.poetry/bin" >> $GITHUB_PATH | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to ghcr.io | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build flatpak | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y flatpak-builder | |
cd docker | |
bash -x ./build.sh | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v5 | |
with: | |
context: docker | |
file: docker/Dockerfile | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: | | |
ghcr.io/flathub-infra/flatpak-builder-lint:${{ github.sha }} | |
ghcr.io/flathub-infra/flatpak-builder-lint:latest | |
labels: | | |
org.opencontainers.image.revision=${{ github.sha }} | |
org.opencontainers.image.source=ssh://[email protected]:${{ github.repository }}.git | |
org.opencontainers.image.url=https://github.com/${{ github.repository }} | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
- name: Login to ghcr.io using Flathub credentials | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ secrets.FLATHUB_ORG_USER }} | |
password: ${{ secrets.FLATHUB_ORG_TOKEN }} | |
- name: Build and push Docker image to the old location | |
uses: docker/build-push-action@v5 | |
with: | |
context: docker | |
file: docker/Dockerfile | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: | | |
ghcr.io/flathub/flatpak-builder-lint:${{ github.sha }} | |
ghcr.io/flathub/flatpak-builder-lint:latest | |
labels: | | |
org.opencontainers.image.revision=${{ github.sha }} | |
org.opencontainers.image.source=ssh://[email protected]:${{ github.repository }}.git | |
org.opencontainers.image.url=https://github.com/${{ github.repository }} | |
cache-from: type=gha | |
cache-to: type=gha,mode=max |