Skip to content

BugFix: Set advertiser in click links from the redirected URL rather … #37

BugFix: Set advertiser in click links from the redirected URL rather …

BugFix: Set advertiser in click links from the redirected URL rather … #37

# GitHub recommends pinning actions to a commit SHA.
# To get a newer version, you will need to update the SHA.
# You can also reference a tag or branch, but the action may change without warning.
name: Publish Docker Image Postback API
on:
# TODO: Should use releases instead of push?
# release:
# types: [published]
push:
branches: ['main']
paths:
- 'apps/postback-api/**'
- '.github/workflows/actions-docker-build-postback-api.yml'
# Publish semver tags as releases.
tags: ['v*.*.*']
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
if: github.repository_owner == 'OpenAttribution'
runs-on: ubuntu-latest
environment: production
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: openattribution
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: openattribution/python-api
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: apps/postback-api/
file: apps/postback-api/Dockerfile.build
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}